Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - SleePy

#1
MOHAA Series: General / Weapons Limiter
June 21, 2006, 05:02:14 AM
so theorictly I could make a cfg that had:

   admin_cmd "limitweap BAR 2 Thompsonsmg"

   admin_cmd "limitweap kar98 2 mp40"

   etc...

   would that work? or would I need wait commands? like wait, w5, w10??

   what about changing it back?

   admin_cmd "limitweap kar98 1" ??

   

   oh btw. while your talking about an update. I can't always recreate it but sometimes if im holding the mg42 portable and go over a plane trigger and crash. then go back to were I crashed when I pick up the weapon it spawns a mg42 portable at 0 0 0. and if i drop it it disapears. my weapon I had on the time of pickup appears at 0 0 100 and all other weapons appear at 0 0 0.

   I Got this to happen in flug. but can't get a steady action to do a recreate. Just a suggestion you should make sure they arn't holding the portable and drop it if they are. plus I dont want people taking it to roof tops and stuff and  play fish in a barrel...

   Some reason it bypases your switch to pistol command while your holding the portable..
#2
MOHAA Series: General / Weapons Limiter
June 21, 2006, 02:07:37 AM
I love the fact that Admin Pro has a weapons limiter built into it. But I want to know if its possible to be able to change the settings?

   Like have a cfg file that can be executed (rcon exec allweaps) to change it from rifles only to all weapons and vic versa.

   Is this possible to do?
#3
MOHAA Series: General / Plane Triggers
June 16, 2006, 08:52:04 PM
this is the trigger.scr file I got:

   

   

   // 08/12/2005 16:43 Forced player to use pistol before he/she starts to use a plane, this fixed sniper
   
   
   
   main local.origin local.team local.scale local.start_pos:
   
   
   
      if(level.planes == NIL)
   
      {
   
         exec server_planes/setup.scr
   
      }
   
   
   
      if(local.origin==NIL)
   
      {
   
         println "no origin"
   
         end
   
      }
   
   
   
      if(local.scale==NIL)
   
      {
   
         local.scale = .2
   
      }
   
   
   
      if(local.start_pos==NIL)
   
      {
   
         local.start_pos = self.origin + ( 0 0 100 )
   
      }
   
   
   
      if(local.team == NIL)
   
      {
   
         println  "no team"
   
         local.team = randomint (1) + 1
   
   
   
         if(local.team == 0)
   
         {
   
            local.team = "axis"
   
         }
   
         else
   
         {
   
            local.team = "allies"
   
         }
   
      }
   
   
   
      local.plane = spawn script_model "targetname" ("plane_trigger" + local.team)
   
   
   
      if(local.team =="axis")
   
      {
   
         local.plane model "vehicles/fockwulffly.tik"
   
      }
   
      else
   
      {
   
         local.plane model "vehicles/p47fly.tik"
   
      }
   
   
   
   
   
      local.plane.origin = self.origin
   
      local.plane.scale = .1
   
      local.plane light 1 0 0 50
   
      //local.plane notsolid
   
      local.plane ghost
   
   
   
      local.plane.shot = 0
   
   
   
      local.plane_trig = spawn trigger_multiple "targetname" ("plane_trigger_fly" + local.team)
   
      local.plane_trig.origin = self.origin
   
      local.plane_trig setthread fly
   
      local.plane_trig setsize ( -40 -40 -40 ) ( 40 40 40 )
   
      local.plane_trig.plane_scale = local.scale
   
      local.plane_trig.plane_start = self.origin
   
      local.plane_trig.team = local.team
   
   
   
      local.plane_trig_shot = spawn trigger_multiple "spawnflags" "128"  "targetname" ("plane_shottrigger" + local.team)
   
      local.plane_trig_shot.origin = local.origin
   
      local.plane_trig_shot setthread shot
   
      local.plane_trig_shot setsize ( -40 -40 -40 ) ( 40 40 40 )
   
      local.plane_trig_shot.team = local.team
   
   
   
      level waittill spawn
   
   
   
      local.i[0] = 0
   
      local.i[1] = 0
   
      local.i[2] = 0
   
   
   
      local.v[0] = 3
   
      local.v[1] = 4
   
      local.v[2] = 5
   
   
   
      while(1)
   
      {
   
         if(local.minues!=1)
   
         {
   
            local.v[0] ++
   
            local.v[1] ++
   
            local.v[2] ++
   
         }
   
   
   
         if(local.v[2]==10)
   
         {
   
            local.minues=1
   
         }
   
   
   
         if(local.v[2]==3)
   
         {
   
            local.minues=0
   
         }
   
   
   
         if(local.minues==1)
   
         {
   
            local.v[0] --
   
            local.v[1] --
   
            local.v[2] --
   
         }
   
   
   
   
   
         for(local.p=0;local.p<=10;local.p++)
   
         {
   
   
   
         waitframe
   
   
   
            local.i[0] += local.v[0]
   
            local.i[1] += local.v[1]
   
            local.i[2] += local.v[2]
   
   
   
            if(local.plane.shot==1)
   
            {
   
               local.i[0] += local.v[0]
   
               local.i[1] += local.v[1]
   
               local.i[2] += local.v[2]
   
               local.i[0] += local.v[0]
   
               local.i[1] += local.v[1]
   
               local.i[2] += local.v[2]
   
               local.plane light 1 0 1 50
   
            }
   
   
   
            local.plane.angles = ( local.i[0] local.i[1] local.i[2] )
   
         }
   
      }
   
   
   
   
   
   
   
   
   
   end
   
   
   
   end
   
   
   
   fly:
   
      local.player = parm.other
   
   
   
      if(local.player.flying != 1 &&  local.player.OWNS != 1)
   
      {
   
         local.team = parm.other.dmteam
   
   
   
         local.use_teams = waitexec global/settings.scr::getcmd "use-teams"
   
   
   
         if (local.use_teams  == "1")
   
         {
   
            if(self.team != local.player.dmteam)
   
            {
   
               local.player iprint "You don't have the training for this aircraft"
   
               local.plane = waitthread find_trig self.team self
   
   
   
               local.plane light 0 0 1 100
   
               waitframe
   
   
   
               local.plane light 1 0 0 50
   
               end
   
            }
   
         }
   
         self nottriggerable
   
   
   
         local.player useweaponclass pistol
   
         wait 1
   
         local.player.plane_start = self.start_pos
   
         local.player scale self.plane_scale
   
         local.player exec server_planes/server_fly.scr
   
   
   
         local.trigdelay = waitexec global/settings.scr::getcmd "trig-delay"
   
         local.trigdelay = int local.trigdelay
   
   
   
         local.trig = waitthread find_trig self.team self
   
         local.trig hide
   
   
   
         wait local.trigdelay
   
   
   
         local.trig show
   
         self triggerable
   
      }
   
   end
   
   
   
   shot:
   
      local.trig = waitthread find_trig self.team self
   
      local.trig.shot=1
   
      wait 1
   
      local.trig.shot=0
   
      local.trig light 1 0 0 50
   
      end
   
   end
   
   
   
   find_trig local.team local.trig:
   
   
   
      for(local.i=1;local.i <=  $("plane_trigger" + local.team).size;local.i++)
   
      {
   
         if(local.trig.origin ==  $("plane_trigger" + local.team)[local.i].origin)
   
         {
   
            end  $("plane_trigger" + local.team)[local.i]
   
         }
   
      }
   
   
   
   end
   
   
   
   switch__all local.team local.dissable:
   
   
   
   
   
      for(local.i=1;local.i <=  $("plane_trigger_fly" + local.team).size;local.i++)
   
      {
   
         if(local.dissable == 1)
   
         {
   
            $("plane_trigger_fly" + local.team)[local.i] nottriggerable
   
            $("plane_shottrigger" + local.team)[local.i] nottriggerable
   
            $("plane_trigger" + local.team)[local.i] hide
   
         }
   
         else
   
         {
   
            $("plane_trigger_fly" + local.team)[local.i] triggerable
   
            $("plane_shottrigger" + local.team)[local.i] triggerable
   
            $("plane_trigger" + local.team)[local.i] show
   
         }
   
      }
   
   end
   
   
   
   from_fly local.team:
   
   
   
      thread switch__all local.team 1
   
   
   
      while(level.planes[local.team] == level.planes_max[local.team])
   
      {
   
         wait 1
   
      }
   
   
   
      thread switch__all local.team
   
   
   
   end
   

   

   If you know how to get my ap version that would be cool. I dont know what version I got. Been a while.

   

   Would take me hours to remove all my other mods. I got them all in 1 mod file and wouldn't be sure what is ap and what isn't
#4
MOHAA Series: General / Plane Triggers
June 14, 2006, 02:37:16 AM
well using your full script I can no longer find them. So dont know if they spaw or not..

   Is there a way I could create my own trigger to do this maybe? I only want the plane triggers on omaha and flug...

   I dont think it is a mod problem. Everything else runs fine. and since I used your whole script you copied and pasted there nothing should be conflicting it.

   The only things that load from the dmprecache that is Admin Pro, MAM and foresight.
#5
MOHAA Series: General / Plane Triggers
June 13, 2006, 02:58:04 AM

      level.script="maps/obj/MP_Flughafen_TOW.scr"
      level.music="MP_Flughafen_TOW"
   
      exec global/ambient.scr
      exec global/door_locked.scr
      exec server_planes/trigger.scr ( 2478.77 4064.49 58 ) "allies" .2 //
      exec server_planes/trigger.scr ( -1867.33 -1378.75 73 ) "axis" .2 //
   
      if (level.mef_gametype != "tow" && level.mef_gametype != "fttow")
      {
         //remove all ai
         $enemyspawner remove
         $gmc_bomb remove
         $opel_bomb remove
      }
   

   Doesn't Work still. spawns at 0 0 0 again.. Now its just harder to tell they are spawned togethor..
#6
MOHAA Series: General / Plane Triggers
June 12, 2006, 01:09:19 AM
Im trying to add some plane triggers to some of my maps... But The first map I try Ohama it spawns them at 0 0 0(

   I used the cords from a previous post to do triggers

   

   

      exec server_planes/trigger.scr (984 -4550 -422) "allies" 1
      exec server_planes/trigger.scr (229 340 390) "axis" 1
   

   

   I tried another map, Flughafen, and noticed that the plane triggers did spawn. but not at the coords i set. they spawned at 0 0 0

   
   //Turn off the lights!
      thread init_runway_lights
   
      level waittill prespawn
      exec server_planes/trigger.scr( 3046 2102 -21 ) "allies" 1
      exec server_planes/trigger.scr( -3340 -704 -124 ) "axis" 1
   
      level waittill spawn

   

   So why isn't it setting the plane triggers coords?

   Anyone know?
#7
Im trying to add some plane triggers to some of my maps... But The first map I try Ohama doesn't work :(

   I used the cords from a previous post to do triggers

   

   

      exec server_planes/trigger.scr (984 -4550 -422) "allies" 1
      exec server_planes/trigger.scr (229 340 390) "axis" 1
   

   

   

   --Edit--

   I tried another map, Flughafen, and noticed that the plane triggers did spawn. but not at the coords i set. they spawned at 0 0 0

   
   //Turn off the lights!
      thread init_runway_lights
   
      level waittill prespawn
      exec server_planes/trigger.scr( 3046 2102 -21 ) "allies" 1
      exec server_planes/trigger.scr( -3340 -704 -124 ) "axis" 1
   
      level waittill spawn

   Went back to ohama and tele to 0 0 0 and the plane trigger is there...

   So why isn't it setting the plane triggers coords?

   

   --Edit--

   Anyone know?