Saturday, 18-01-2025, 9:40 AM

Logged in as Guest | Group "Guests"Welcome Guest | RSS
 
[ New messages · Members · Forum rules · Search · RSS ]
  • Page 1 of 1
  • 1
Make a Particle Burst When a Player Joins (Like Q1/Q2)
HorusDate: Sunday, 03-01-2016, 7:56 PM | Message # 1
Generalissimo
Group: Administrators
Messages: 14
Awards: 0
Reputation: 0
Status: Offline
Make a Particle Burst When a Player Joins (Like Q1/Q2)


HalfLife's Code is BLUE
Mazor's Code is RED
Mazor's Commentary is GREY

multiplay_gamerules.cpp
Find this function:
void CHalfLifeMultiplay::PlayerSpawn( CBasePlayer *pPlayer)
At the very bottom of the function, before the last }, put in this:
MESSAGE_BEGIN( MSG_BROADCAST, SVC_TEMPENTITY );
WRITE_BYTE( TE_TELEPORT );
//This denotes which temporary intity we want to use
WRITE_COORD(pPlayer->pev->origin.x); // Location-X
WRITE_COORD(pPlayer->pev->origin.y); // Location-Y
WRITE_COORD(pPlayer->pev->origin.z); // Location-Z
MESSAGE_END();
There, now when a player spawns, you''ll see this white/grey particle burst around them.
Enjoy!


 
  • Page 1 of 1
  • 1
Search:

Copyright MyCorp © 2025 Powered by uCoz