monster_tripmine in Half-Life (not CS)
[EN] Hello. I need to seize the moment when a player crosses the laser ray of mine what to block its explosion and to put to death a player. Who can that ran into this problem that help please. Thank you!
[RU] Здравствуйте. Мне нужно поймать момент когда игрок пересекает лазерный луч мины что бы блокировать ее взрыв и убить игрока. Может кто то сталкивался с этой проблемой то помогите пожалуйста. Спасибо! |
Re: monster_tripmine in Half-Life (not CS)
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? |
Re: monster_tripmine in Half-Life (not CS)
You have to block the original trace too.
|
Re: monster_tripmine in Half-Life (not CS)
But as to block original trace? Point an example please.
|
| All times are GMT -4. The time now is 15:28. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.