• Unfortunately, we have experienced significant hard drive damage that requires urgent maintenance and rebuilding. The forum will be a state of read only until we install our new drives and rebuild all the configurations needed. Please follow our Facebook page for updates, we will be back up shortly! (The forum could go offline at any given time due to the nature of the failed drives whilst awaiting the upgrades.) When you see an Incapsula error, you know we are in the process of migration.

[help] custom spawn

Joined
Apr 23, 2013
Messages
1,172
Reaction score
1,797
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