![]() |
Looking for humans being spawned.
I am using this to find hostages being spawned.
Code:
int Spawn_post(edict_t *pent) tx. |
Re: Looking for humans being spawned.
tracking ClientConnect() or ClientPutInServer()?
|
Re: Looking for humans being spawned.
No, i need to catch them at Spawn_post()
Because I will be tweaking the health of humans when they respawn at round start. I guess I can simply put in log messages and look for what is obviously humans spawning, but I thought someone might know the entity type for humans/players.. tx |
Re: Looking for humans being spawned.
the entity name of players is "player". However I don't think the DispatchSpawn() function will get called at each round.
|
Re: Looking for humans being spawned.
If this is a deathmatch mod... I guess you could just continuously poll through each player and check if they died, set a flag, wait till they aren't dead anymore, et voila they've respawned.
If it's round based.. you need to know how to catch a new round and call your function on every player after the round starts. |
Re: Looking for humans being spawned.
More logically, check for the time when the player entity gets
1°) teleported to another location 2°) rendered visible again That will mean a "spawn". |
All times are GMT +2. The time now is 16:46. |
Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.