question about ham_spawn
hello. i have a question about this event:
PHP Code:
When a player is dead and he's respawning or whenever round start (or you execute a command). If i use sv_restart 1 in console, the event will be applied for each player ? Because i have some trouble in this situations. Are there better options to detect player spawn without any glitches ?? |
Re: question about ham_spawn
You can find these answers on your own: add messages inside the ham spawn hook and see if it is called when you need it to be called.
Also, there are no glitches. Hamsandwich hooks functions directly from the game code. Ham_Spawn hooks CBasePlayer::Spawn(this is how the game spawns a player) so literally you can't be more accurate than this. |
Re: question about ham_spawn
Ham_spawn "player" its called on two different occasions first one is when a client get putinserver a player entity spawns for that client ( doesn't mean a "player" entity was created more like the player entity settings were set ), second one is when a player get revived from death or he gets respawned.
|
Re: question about ham_spawn
If i m playing as a Counter-Terrorists and my location is in Terrorists base (i m alive) let s say i'm using sv_restart 1.
The game reset and my new location is in Counter-Terrorists base. It's this called spawn ? |
Re: question about ham_spawn
Quote:
|
Re: question about ham_spawn
Ham_spawn is for entities it has nothing to do with locations
And for player entities they are necessary map entities, they have defined locations from the map maker. |
Re: question about ham_spawn
Quote:
Code:
|
Re: question about ham_spawn
Quote:
|
Re: question about ham_spawn
Ham_spawn at times is willy-nilly without the tasks. Half sec is fine too.
|
Re: question about ham_spawn
Quote:
|
All times are GMT -4. The time now is 00:27. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.