Plugin-related: How To Players Damage Entities?

XvarionXvarion Join Date: 2002-11-06 Member: 7281Members
<div class="IPBDescription">Does NS use the takedamage HL field?</div> I'm working with some Metamod plugin source code, but I can't get entities to take damage from players' weapons in the NS Mod.

Another Mod author wrote:

<!--QuoteBegin--></span><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> </td></tr><tr><td id='QUOTE'><!--QuoteEBegin-->The way that players damage other types of entities (breakables, glass, monsters, etc.) should be the same across all MODs (but might not be this way in NS for some strange reason which will only be known to the coders who wrote the NS MOD) ... plugin code uses the Half-Life engine 'takedamage' field in an entity to indicate that this entity should take damage.  The 'takedamage' field is commonly used for things like glass or other breakables that will take damage and be destroyed.  When you shoot (or hit) something that takes damage, the health of that entity should get reduced.<!--QuoteEnd--></td></tr></table><span class='postcolor'><!--QuoteEEnd-->

This is not happening in the NS Mod - have you guys not implemented the takedamage functionality?

Thanks,
Eric

Comments

Sign In or Register to comment.