[Help] tripmine satchel trigger
How to blow up a satchels, or tripmines, if i know theire entity id?
I have to remove them, but i dont want to use Code:
engfunc(EngFunc_RemoveEntity, ent); |
Re: [Help] tripmine satchel trigger
Normal way :
For satchel, you can use Ham_Use, or force_use(). For tripmine, you can try to set to 0 m_hOwner offset. With Orpheu : For satchel, call : CGrenade::Detonate() For tripmine, call : CGrenade::Explode() or CGrenade::Detonate(). |
Re: [Help] tripmine satchel trigger
Quote:
I have to use Ham_TakeDamage THX, solved. |
Re: [Help] tripmine satchel trigger
Code:
float m_flPowerUp; |
Re: [Help] tripmine satchel trigger
For Tripmine looks the code :
PHP Code:
PHP Code:
For m_hOwner, get_pdata_ent() should work. |
Re: [Help] tripmine satchel trigger
Yes it will blow up, but the made frags will count for the original deployer, not for the specified player. (Correct me if im wrong)
|
Re: [Help] tripmine satchel trigger
Which is logic.. I don't get your point.
|
Re: [Help] tripmine satchel trigger
Im destroying respawn mines when a player respawn near to them, so the frags made the explosion because of destroying them shoud be counted for the respawner (who is in respawn protection for avoiding suicide)
So force_use and takedamage works well. |
| All times are GMT -4. The time now is 07:20. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.