Thread: Mirror Damage
View Single Post
Seather
Member
Join Date: Oct 2004
Old 12-13-2005 , 06:55  
Reply With Quote #19

register_forward(FM_TraceLine... method

Modules required: fakemeta,fun,engine

*seather finds and slightly extends XxAvalanchexX's example from http://www.amxmodx.org/doc/source/fu...eta/set_tr.htm and finds victim by looking at Cheap_Suit's knife zone http://forums.alliedmods.net/showthread.php?t=20396

victim shouldn't even be touched, no chance of victim death, no loss of victim armor

cvar: amx_mirror_damage , default = 1

edit:12/17, brought back eks code to handle nades and other non instant bullets which the traceline misses, and refill lost hp and armor

[done]todo when i have time: only traceline while +attack[2], so that when you look at people on your team you don't see your own name.

[sort of fixed?]bug: restoring victim hp messed up, hp not restored, some have more than 100 hp

edit:12/18, cleaned up some stuff, fixed some possible bugs, added +attack[2] detection that i have seen in PaintLancer's http://forums.alliedmods.net/showthread.php?p=66556

edit:12/18, #2, more small bug fixes and misc tweaks

todo: revive dead team killed players (in cs killed by HE)
Attached Files
File Type: sma Get Plugin or Get Source (sea_mirror_damage.sma - 1105 views - 2.9 KB)
Seather is offline