[H3LP] Weapon Respawn Time
Hello everyone. How can I set the time be4 a weapon respawns?
I've been trying everything, but nothing seems to work. Thanks ! |
Re: [H3LP] Weapon Respawn Time
pev_nextthink or Ham_Respawn() seem to be related to Item Respawning, unfortunately I haven't work with them too much, but you can test them.
|
Re: [H3LP] Weapon Respawn Time
By weapon you mean armoury entities? Call ExecuteHam(Ham_CS_Restart, Entity) on the entity. Alternatively you can change its flags to ~EF_NODRAW and the m_iCount to m_iInitialCount or the amount you would want it to have.
|
Re: [H3LP] Weapon Respawn Time
Quote:
|
Re: [H3LP] Weapon Respawn Time
Quote:
|
Re: [H3LP] Weapon Respawn Time
Quote:
|
Re: [H3LP] Weapon Respawn Time
He mean to call when the weapons from the ground ( example fy_snow weapons ) are being created.
Example, when a new WEAPONBOX entity are maded. This will be scanned ONLY when you pickup an m4a1, that's when you first create a m4a1 weaponbox: PHP Code:
|
Re: [H3LP] Weapon Respawn Time
Quote:
(Assuming the weapon is grabbed and not respawned) PHP Code:
Another more reliable way is to hook Ham_Respawn like I told you, then set a timer to execute PHP Code:
|
Re: [H3LP] Weapon Respawn Time
Quote:
Maybe u can show me a complete example of how it's done in CS then I can update it to work with HL and GC? |
Re: [H3LP] Weapon Respawn Time
Post the code to see how are you trying.
EDIT: Try this: PHP Code:
|
| All times are GMT -4. The time now is 18:00. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.