Jump to content
Chris07

Modifying Stabilize command

Recommended Posts

Some scripting questions for you all: (I know how to script I just need to know how to approach each problem or if it's even possible)

I'm trying to add some extra functionality to the LAStabilize (I'm working with LA Mod) command to allow those with the Stabilize (Not heal) command be able to slow down the life drain rate of medical victims who are "comatose". Usually the stabilize command will not do anything for a comatose person, and the best thing anyone can do is use the heal command with an EMERGENCY BAG. I want to add the ability for the stabilize command to dramatically slow the (relatively fast) life draining rate when a person is comatose to allow for more time for a character with an emergency bag to get the victim.

Where might I begin in accomplishing this? Would I be using the setInjuredLifeDrain() or setMedicalLifeDrain()?

Second question:

How can I change the starting life amount for victims of medical event is freeplay? For example, I would like certain events like food poisoning to have the victim start with less health points.

Third question:

Is it possible to change the life points of a person who has been shot? I would like to have those who have been shot start at half of their normal life points when injured.

Link to comment
Share on other sites

2 and 3 are both hard coded into the engine, however you can overwrite this using scripts, as the fbi sniper does in Hoppah's script.

For your stabilise question, you're gonna need to edit the script, however the parameters that control health reduction after being downed are not something I know, if you can figure out what parameters you need to name in the script it'd be relatively simple to do, but that applies with pretty much anything.

So in short, it's doable and a good idea, but I for one wouldn't know what to script for it to work, try checking out similar scripts from other mods see what parameters they name.

Sorry I wasn't 100% helpful but hope this cleared it up a bit

x

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...