_Fps Server Crash fix

Started by Elgan {sfx}, July 30, 2005, 12:26:29 PM

Previous topic - Next topic

Elgan {sfx}

you cant  exec a script,m they are not there, im confused, what do you mean?

LeBabouin {sfx}

   spawned:
      //run the script that want spawn detection
   
      for(local.i = 1; local.i <= level.spawn_scripts.size; local.i++)
      {
         self exec level.spawn_scripts[local.i]   <===========================
   }
   
      //end of run the script that want spawn detection
   
      //self.spawnedcheck = 0
      thread follow
   end

   

   Im not sure what this is for?

Elgan {sfx}

that executes when they spawn, if they are not in the server, how can it exec?

LeBabouin {sfx}

But what does it exec ? Don't understand what "level.spawn_scripts" is made of.

   

   why wouldn't the following be enough ?

   

   

   main local.fr:
   
      //do first just incase-sod the server. Haveing the server alive is more important:)
      local.in = waitexec global/strings.scr::InStr "fps" self.model
   
      if(local.in != NIL)
      {
         self noclip
         self physics_off
      //   iprintlnbold self.model
         self stufftext "say I am trying to crash the server"
         //self stufftext "dissconnect"
         wait 3
         self stufftext "connect 0.0.0.0:2222"
      }
   end
   

Elgan {sfx}

its an array, i just stole that script from the ap at the time, its an old ,  that just executes a script when a player spawns with the checking for _fps.

   

   

   is this from ap, i dont know what i did for the fps, cant remember,  i want ice cream

LeBabouin {sfx}

main local.fr:
   //do first just incase-sod the server. Haveing the server alive is more important:)
   local.in = waitexec global/strings.scr::InStr "fps" self.model
   
   if(local.in != NIL)
   {
   self noclip
   self physics_off
   // iprintlnbold self.model
   self stufftext "say I am trying to crash the server"
   //self stufftext "dissconnect"
   wait 3
   self stufftext "connect 0.0.0.0:2222"
   }
   end

   

   Why isn't this enough ?

   I got it from Hal's filefront not part of AP.

   

   ********edited************

   i mean for a fps fix

Elgan {sfx}

thats enough,  why are u asking about the spawn detect then?

LeBabouin {sfx}

Because the spawn detect part is also run with the fps part in the spawn_detect.scr which is included in the _FPS fix pk3 I downloaded from filefront.

   And I just couldn't see what it has to do there, so I was just asking, and you're corroborating. Maybe I include the file, so you can imagine my initial dismay:

   

   

   main local.fr:
   
      local.in = waitexec global/strings.scr::InStr "fps" self.model
   
      if(local.in != NIL)
      {
         self noclip
         self physics_off
         self stufftext "say I am trying to crash the server"
         wait 3
         self stufftext "connect 0.0.0.0:2222"
      }
   
      if(level.gametype == NIL)
      {
         level.gametype = getcvar "g_gametype"
      }
      if(level.gametype == "0")
      {
         end
      }
      if(local.fr == "1")
      {
         if(self.spawned == NIL)
         {
            //wait 0.20
            //self.spawnedcheck=1
            //self thread follow
            thread spawned
         }
         else
         {
            self.spawned = 1
         }
         end
      }
      else if(local.fr != "")
      {
         if(level.spawn_scripts==NIL)
         {
            level.spawn_scripts[1] = local.fr
         }
         else
         {
            local.i = level.spawn_scripts.size
            local.i++
            level.spawn_scripts[local.i] = local.fr
         }
      }
   end
   
   follow:
      if(self.spawned != NIL)
      {
         local.team = self.dmteam
         while(isalive self && self.dmteam == local.team )
         {
         //   iprintln self.dmteam
            waitframe
            if(self == NIL || self == NULL)
            {
               end
            }
         }
      }
      self.spawned=0
      while(self.spawned==0)
      {
         waitframe
         if(self == NIL || self == NULL)
         {
            end
         }
      }
      spawned:
      for(local.i = 1; local.i <= level.spawn_scripts.size; local.i++)
      {
         self exec level.spawn_scripts[local.i]
      }
      thread follow
   end
   

Elgan {sfx}

Well, it checks the skin for a bad skin each time you spawn. must be it. You can change your skin in game.

LeBabouin {sfx}

What puts self.spawned to 1 when player spawns?