Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

[help] custom spawn

Joined
Apr 23, 2013
Messages
1,172
Reaction score
1,791
Code:
WarZ_Server.slnServerGameLogic.cpp# # Searchif (needsSpawnProtection) {  .....}# # Replaceforif (needsSpawnProtection) // Need sync with Client also{  if (ginfo_.IsCustomMap())    plr -> m_SpawnProtectedUntil = r3dGetTime() + 5.0 f; // Less seconds for custom maps  else    plr -> m_SpawnProtectedUntil = r3dGetTime() + 15.0 f; // 30 seconds of spawn protection}NetPacketsGameInfo.h# # Searchbool IsGameworld() const {  ....}# # Add belowbool IsCustomMap() const // This is all map's will change Spawn Time{  return mapId == MAPID_WZ_AircraftCarrier ||    mapId == MAPID_WZ_Trade_Map ||    mapId == MAPID_WZ_Hangar;}WarZ.slnClientGameLogic.cpp# # Searchplr -> m_SpawnProtectedUntil = r3dGetTime() + 30.0 f;# # Replaceforif (m_gameInfo.IsCustomMap())  plr -> m_SpawnProtectedUntil = r3dGetTime() + 5.0 f; // Less seconds for custom mapselse  plr -> m_SpawnProtectedUntil = r3dGetTime() + 30.0 f; // 30 seconds of spawn protection



https://pastebin.com/J2TsWGDB
 
Upvote 0
Back
Top