Raised This Month: $ Target: $400
 0% 

monster_tripmine in Half-Life (not CS)


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Vladimirok
New Member
Join Date: Jun 2009
Old 06-30-2009 , 14:54   Re: monster_tripmine in Half-Life (not CS)
Reply With Quote #2

Player crosses the laser ray:

register_forward(FM_TraceLine, "forward_trace_line", 1)
...
public forward_trace_line(Float:start[3], Float:dest[3], ignore_monsters, id, ptr)
{
if (pev_valid(id))
{
static class[32]
pev(id, pev_classname, class, sizeof class - 1)
if(equal(class, "monster_tripmine"))
{
new index = get_tr2(ptr, TR_pHit)
if(is_user_alive(index))
{
fm_fakedamage(index, "tripmine", 999.0, DMG_BLAST)
set_tr2(ptr, TR_pHit, -1)
return FMRES_HANDLED
}
}
}

return FMRES_IGNORED
}

But a mine bursts. How to block an explosion?
Vladimirok is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 15:28.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode