Raised This Month: $51 Target: $400
 12% 

How To: Respawn a player


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Prajch
Senior Member
Join Date: Dec 2007
Location: anger++
Old 09-06-2008 , 06:35   Re: How To: Respawn a player
Reply With Quote #21

DLLFunc_Spawn works perfectly for me, as long as I use the following first:
PHP Code:
set_pev(idpev_flagspev(idpev_flags) | FL_FROZEN
It seems that sometimes (maybe 1-2% of the time?) they can stay frozen after they spawn, so you could follow it with:

PHP Code:
set_pev(idpev_flagspev(idpev_flags) & ~FL_FROZEN
[edit] This also needs something like a 0.2 second delay between setting the flags and respawning them.

I can't come up with any explanation for why you have to freeze them (I found this in another thread), but there you have it. I'm not saying it's a better method either, since DLLFunc_Think needs less lines, but it was just to show it's possible.

They spawn with all their default weapons, the HUD, and no ghost corpses that I can see. The only exception is that if spectator is the first team you join when connecting to a server, when you respawn you won't have a HUD until you give yourself an item_suit. After that it sticks.

Last edited by Prajch; 10-05-2008 at 12:52.
Prajch 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 12:42.


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