Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Entity Health
Romulator Offline
Not Tech Support ;-)

Posts: 3,628
Threads: 63
Joined: Jan 2013
Reputation: 195
#7
RE: Entity Health

(12-12-2013, 03:05 AM)DreamScripters Wrote:
Spoiler below!

I got a question myself though, wouldn't it be easier if he just used a script to do it? I didn't really explain allot in my first reply but all you would need to do is this I believe:

SetPropHealth(string& asName, float afHealth);

asName - Entity name. (Your door)
afHealth - Amount of health the entity has. (200 - 300 maybe?)

Or, I believe you could even do this:

AddPropHealth(string& asName, float afHealth);

asName - Entity name. (Your door)
afHealth - Amount of health to add. (100 - 200 maybe?)

Like you said though. Doing it through the model editor would affect all other doors of the same type unless you made a copy. But I believe the simpler and more realistic way of doing it would be doing this. Big Grin

Oh, and some side notes. The default door health (at least for the default castle doors) is "100". So, if we take that and divide it by the amount of hits a grunt has to do to break it. Then we get "25". (4 hits) And, for a brute its "50". (2 hits) So, just multiply those numbers by the amount of hits you want it to take them to get through the door and you have the health you want it to be at! Big Grin


Quote in spoiler for room Tongue

Yes, but it's a suggestion as an addon to what DnALANGE said, as editing the doors health will change all of those doors, even in the main game xD Your above suggestion works as well, but this is just in case you change the model :3

Discord: Romulator#0001
[Image: 3f6f01a904.png]
12-12-2013, 04:08 AM
Find


Messages In This Thread
Entity Health - by RaideX - 12-05-2013, 06:23 PM
RE: Entity Health - by DnALANGE - 12-05-2013, 07:32 PM
RE: Entity Health - by RaideX - 12-05-2013, 08:35 PM
RE: Entity Health - by DreamScripters - 12-11-2013, 05:04 PM
RE: Entity Health - by Romulator - 12-12-2013, 12:47 AM
RE: Entity Health - by DreamScripters - 12-12-2013, 03:05 AM
RE: Entity Health - by Romulator - 12-12-2013, 04:08 AM



Users browsing this thread: 1 Guest(s)