Skip to content

Rip-Rip-Rip/P2CE-Addon-Fall-Damage

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Portal 2 with Fall Damage (P2:CE Addon)

Content source for the "Portal 2 with Fall Damage" Portal 2: Community Edition workshop addon.

Workshop page: https://steamcommunity.com/sharedfiles/filedetails/?id=3467618114

NOTE: This addon has a custom panorama health display. When on the main menu after enabling this addon, run the command "panorama_reload". This will reload panorama and enable the custom health display. If the game complains about any errors, just press ignore.


Have you ever wondered what Portal 2 would be like if Chell didn't have her Long Fall Boots™? Well, wonder no more! :D

In this addon, fall damage is enabled and health regeneration is disabled (unless enabled).

You can choose to have health persistence disabled (default) or enabled. With health persistence enabled, Chell's health at the end of a map is carried through to the next map.

Medkits also spawn throughout each level (usually around other test elements). These heal 20 health each by default.


This mod has some settings you can adjust:

SetHudSize(val) // Sets the size of the onscreen health display. Has 4 sizes. Set value persists across maps. Takes integers 1, 2, 3 or 4 as a parameter, corresponding to different size levels. (Default value = 2)

SetMaxPlayerHealth(val) // Sets the player's maximum health and heals the player to full health. Set value persists across maps. Takes an integer > 0 as a parameter. (Default value = 100)

SetMedkitHealAmount(val) // Sets the amount of health a medkit provides to a player. Set value persists across maps. Takes an integer > 0 as a parameter. (Default value = 20)

DoHealthRegeneration(val) // Enables/Disables player health regeneration. Set value persists across maps. Takes a boolean value ('true'/'false') as a parameter. (Default value = false)

DoHealthPersistence(val) // Enables/Disables player health persistence (whether the player's health in one level is transfered into future levels). Takes a boolean value ('true'/'false') as a parameter. (Default value = false)

DoFallDamage(val) // Enables/Disables fall damage. Intended for use in cases where the player just wants the other script's capabilities and not the fall damage. Takes a boolean value ('true'/'false') as a parameter. (Default value = true).

ResetScript() // Used to reset the script back to default, only run this if something breaks.

In order to change these settings, open the console whilst inside a map and run the command: script [function] (e.g. script SetMaxPlayerHealth(150)).


Credits:

sirenstorm - Partially creating the panorama health display.
Beckeroo - Playtesting + feedback.


If you experience any issues, please either:

  • Make an issue on this repository.
  • Create a pull request if you're experienced with VScripting.
  • Leave a comment on the workshop page linked above.
  • Drop me a DM on Discord. Handle: @ripriprip

Enjoy! <3

About

Content source for the "Portal 2 with Fall Damage" Portal 2: Community Edition workshop addon.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •