Chris,
  I have read that post I think 2 times now lol trying to see if I missed
something and still no go.

I can turn in a circle but not go forward or backwards etc.

r00t 3:16
CQC Gaming
www.cqc-gaming.com
----- Original Message -----
From: "Chris Adams" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Saturday, January 01, 2005 7:51 AM
Subject: RE: [hlcoders] PlayerSpawn


http://forums.thewavelength.net/index.php?showtopic=11140

I had the same problem later on in that thread... Not managed to fix it
yet but others are claiming that they have so...

---------------------------------------
Chris Adams
Fragzzhost

T (07005) 964 855
F (07005) 964 857
www.fragzzhost.com


-----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of r00t 3:16 Sent: 01 January 2005 07:34 To: [email protected] Subject: Re: [hlcoders] PlayerSpawn

Ok it seems to be working some what but when I go into spectator mode
now I
fall and fall and fall ...
Not sure why this happens actually.

r00t 3:16
CQC Gaming
www.cqc-gaming.com


----- Original Message ----- From: "Tony "omega" Sergi" <[EMAIL PROTECTED]> To: <[email protected]> Sent: Friday, December 31, 2004 3:17 AM Subject: RE: [hlcoders] PlayerSpawn


Here's mine:

if (pPlayer->GetTeamNumber() == TEAM_UNASSIGNED)
{
pPlayer->pl.deadflag = true;
pPlayer->AddSolidFlags( FSOLID_NOT_SOLID );
pPlayer->SetMoveType( MOVETYPE_NONE );
pPlayer->SetGroundEntity( NULL );
pPlayer->SetFOV( pPlayer, 0 );
pPlayer->AddPhysicsFlag(PFLAG_OBSERVER);

//omega; if the motd hasn't been shown, then we need to draw
the team menu
if (!pPlayer->bMOTDActive)
pPlayer->ShowViewPortPanel("team", true);
pPlayer->EnableControl(false);
}
else
{
pPlayer->RemPhysicsFlag(PFLAG_OBSERVER); //take that one
away
pPlayer->SetFOV( pPlayer, 0 );
pPlayer->EnableControl(true);
pPlayer->StopObserverMode();

if (GetRulesMode() == RULES_CLASSIC)
PlayerSpawnClassic((CFLFPlayer*)pPlayer);
else if (GetRulesMode() == RULES_CUSTOM)
PlayerSpawnCustom((CFLFPlayer*)pPlayer);
}

Note that I created the add/rem physics flag functions.
-----Original Message-----
From: r00t 3:16 [mailto:[EMAIL PROTECTED]
Sent: December 31, 2004 2:22 AM
To: [email protected]
Subject: [hlcoders] PlayerSpawn

The below code is what I have in sdk_gamerules.cpp
The below code should load the team select menu and place the player
in
TEAM_SPECTATOR
Why would it still spawn the player?
What is happening is the Team Selection menu comes up but it spawns me
right
into the server as soon as I connect which is not what I want.


void CSDKGameRules::PlayerSpawn(CBasePlayer *pPlayer) { CSDKPlayer* pPly = ToSDKPlayer(pPlayer); if (pPly->GetTeamNumber() == TEAM_UNASSIGNED) { pPly->ChangeTeam(TEAM_SPECTATOR); pPly->StartObserverMode(OBS_MODE_ROAMING); pPly->ShowViewPortPanel("specgui", false); pPly->ShowViewPortPanel("team", true); } else { pPly->EnableControl(true); pPly->StopObserverMode(); pPly->EquipSuit(); } }

r00t 3:16
CQC Gaming
www.cqc-gaming.com


_______________________________________________ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlcoders



---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.817 / Virus Database: 555 - Release Date: 15/12/2004


--- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.817 / Virus Database: 555 - Release Date: 15/12/2004



_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives,
please visit:
http://list.valvesoftware.com/mailman/listinfo/hlcoders





_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives,
please visit:
http://list.valvesoftware.com/mailman/listinfo/hlcoders






_______________________________________________ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlcoders





_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives, please 
visit:
http://list.valvesoftware.com/mailman/listinfo/hlcoders



Reply via email to