Raised This Month: $ Target: $400
 0% 

Drop then remove C4


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
VEN
Veteran Member
Join Date: Jan 2005
Old 01-03-2007 , 10:35   Re: Drop then remove C4
Reply With Quote #3

Quote:
engclient_cmd(id, "drop", "weapon_c4")
set_task(0.1, "delete_c4")
You do not need a task because the backack is created right after drop emulation.

Also in the article [HOWTO] detect weapon drop details [including drop type, weapon type, etc] i've wrote that
Quote:
Note: The weaponbox entity is not the actual weapon, it is the "box" entity that "contain" the weapon_* entity, i.e. the actual weapon entity.
In other words your backpack isn't the only entity that should be removed. There are also a weapon_c4 entity that is linked to a weaponbox, i.e. your backpack. There is a safe weaponbox/weapon_* entity deletion method: just force weaponbox Think and it will remove the entity pair almost instantly and safely using the default game methods.

Quote:
Also, is there a way to remove hostages as well?
Hook Spawn in plugin_precache and remove/supercede the corresponding entity - the most safe way.
VEN 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 22:19.


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