Raised This Month: $ Target: $400
 0% 

[H3LP] Weapon Respawn Time


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
gabuch2
AlliedModders Donor
Join Date: Mar 2011
Location: Chile
Old 04-20-2017 , 13:58   Re: [H3LP] Weapon Respawn Time
Reply With Quote #1

Quote:
Originally Posted by PartialCloning View Post
By weapon you mean armoury entities?
Weapon entities mean weapon entities. (weapon_*)
__________________
gabuch2 is offline
DarthMan
Veteran Member
Join Date: Aug 2011
Old 04-20-2017 , 14:11   Re: [H3LP] Weapon Respawn Time
Reply With Quote #2

Quote:
Originally Posted by Gabe Iggy View Post
Weapon entities mean weapon entities. (weapon_*)
Ik, maybe with an enumeration it will check for all?
DarthMan is offline
gabuch2
AlliedModders Donor
Join Date: Mar 2011
Location: Chile
Old 04-20-2017 , 14:21   Re: [H3LP] Weapon Respawn Time
Reply With Quote #3

Quote:
Originally Posted by DarthMan View Post
Ik, maybe with an enumeration it will check for all?
Just try with the stuff I recommended you, unless the game you want to mod is CS you won't get more help than this.

(Assuming the weapon is grabbed and not respawned)
PHP Code:
set_pev(idpev_nextthinkget_gametime()+n
n being the delay to respawn


Another more reliable way is to hook Ham_Respawn like I told you, then set a timer to execute
PHP Code:
ExecuteHamB(Ham_Respawnid
Like I said I haven't tested them too much, so your best bet is to test them and experiment yourself.
__________________

Last edited by gabuch2; 04-20-2017 at 14:23.
gabuch2 is offline
DarthMan
Veteran Member
Join Date: Aug 2011
Old 04-21-2017 , 09:21   Re: [H3LP] Weapon Respawn Time
Reply With Quote #4

Quote:
Originally Posted by Gabe Iggy View Post
Just try with the stuff I recommended you, unless the game you want to mod is CS you won't get more help than this.

(Assuming the weapon is grabbed and not respawned)
PHP Code:
set_pev(idpev_nextthinkget_gametime()+n
n being the delay to respawn


Another more reliable way is to hook Ham_Respawn like I told you, then set a timer to execute
PHP Code:
ExecuteHamB(Ham_Respawnid
Like I said I haven't tested them too much, so your best bet is to test them and experiment yourself.
I have tried ur suggestion, on spawn, respawn and also think, it didn't work on any of these cases sadly.
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?

Last edited by DarthMan; 04-21-2017 at 09:32.
DarthMan is offline
Reply



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 18:00.


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