Portal 2: Community Edition

Portal 2: Community Edition

Not enough ratings
Portal 2 with Fall Damage (V1.11)
   
Award
Favorite
Favorited
Unfavorite
Campaign/Map Tags: Singleplayer
Addon Tags: Scripts
File Size
Posted
Updated
1.160 MB
20 Apr @ 1:48pm
23 Apr @ 9:02am
4 Change Notes ( view )

Subscribe to download
Portal 2 with Fall Damage (V1.11)

Description
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).

DoSpawnMedkits(val) - Enables/Disables the spawning of medkits. Set value persists across maps. Takes a boolean value ('true'/'false') as a parameter. (Default value = true).

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.

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 leave a comment on this addon and/or drop me a DM on Discord! (Handle: @ripriprip)

Enjoy! <3

-----

Content source: https://github.com/Rip-Rip-Rip/P2CE-Addon-Fall-Damage