Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Renegade Discussions » Mod Forum » 4.0 Server Damage
Re: 4.0 Server Damage [message #467124 is a reply to message #467120] Mon, 07 May 2012 07:04 Go to previous messageGo to previous message
jonwil is currently offline  jonwil
Messages: 3557
Registered: February 2003
Karma:
General (3 Stars)

1.StockDamageHook is called when damage is done by a < 4.0 player, TtDamageHook is called when damage is done by a 4.0 player.
2.On 4.0, you can call Get_Damage_Warhead to get the warhead used to carry out damage (i.e. you call it from inside the ::Damaged or ::Killed event of a script, not from inside the damage hook). To convert a string warhead into the number returned by Get_Damage_Warhead, call ArmorWarheadManager::Get_Warhead_Type.
3.No there is no way to tell if it was a head-shot or not.


Jonathan Wilson aka Jonwil
Creator and Lead Coder of the Custom scripts.dll
Renegade Engine Guru
Creator and Lead Coder of TT.DLL
Official member of Tiberian Technologies
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: damage ratios
Next Topic: Looking for testers for a bot/regulator I'm working on.
Goto Forum:
  


Current Time: Sun Dec 22 10:13:14 MST 2024

Total time taken to generate the page: 0.00809 seconds