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 #467122 is a reply to message #467120] Mon, 07 May 2012 06:57 Go to previous messageGo to previous message
iRANian is currently offline  iRANian
Messages: 4308
Registered: April 2011
Karma:
General (4 Stars)
1. The 'StockDamageHook' gets triggered when a non-4.0 player does direct damage and the 'TtDamageHook' gets triggered when a 4.0 player does direct damage, the difference is that the 'TtDamageHook' sends out the ammo used and the bone hit.

2. No, but you can write something that gives you 99% accurate information, see the attached file.

3. For non-4.0 players you can check the direct damage done with a table of neck shot/head shot damage values for a warhead, the 'TtDamageHook' gives you the bone that a 4.0 player hit. See the attached file for an implementation.

The 1% it fucks up is when a player kills another player with splash or burn damage and he does some really quick weapon switching. The Apache and Orca share the same damage value and warhead and I haven't worked on probably reporting kills done with them yet. The next 4.0 beta will give you the ability to check burn damage (special damage types) so you'll just have to add checking for that and fix the Orca and Apache, and then test it on a server, if you're only using it for a sniper server you shouldn't have any issue and you can remove most of the code. Oh and the squish detection sometimes doesn't trigger.


Long time and well respected Renegade community member, programmer, modder and tester.

Scripts 4.0 private beta tester since May 2011.

My Renegade server plugins releases

[Updated on: Mon, 07 May 2012 07:13]

Report message to a moderator

 
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:45:56 MST 2024

Total time taken to generate the page: 0.00633 seconds