Page 1 of 1

what about PA scripting?

Posted: Tue Dec 21, 2004 10:59 pm
by Master-Of-Fungus-Foo-D
Is it an different than regular AA or SH or BT scripting? How would you script something simple, but PA related? like binding the player to a raft and landin' im on a beac or something?

Posted: Wed Dec 22, 2004 3:48 am
by lizardkid
from the code posted by Tltrude

Code: Select all

// if developer mode is on, start when anyone 
// enters the game. 
       
   if (int (getcvar developer)) 
      waitthread wait_for_anyone 

// otherwise start when there is at least 1 
// person on each team. 

   else 

      level waittill roundstart 
end 


//----------------- 
wait_for_anyone: 
//----------------- 


// this thread terminates when anyone has selected a 
// team and before their weapon is selected. 

// spin loop here until at least 1 player has 
// joined a team. 

   while (1) 
   { 
      for (local.i=1; local.i<=$player.size; local.i++) 
      { 
         if ($player[local.i].dmteam == "axis" || $player[local.i].dmteam == "allies") 
            end 
      }          
      waitframe 
   } 
end 

i'd say it's the same with minor adjustments, perhaps they've implemented primitive varaibles? can it be true? nope. i was wrong.

so yeah. looks the same.

you'll have diff model values etc of course. :roll:

Posted: Wed Dec 22, 2004 10:26 pm
by General Death
lizardkid wrote:i'd say it's the same with minor adjustments
You got it. I am not nor have been any good at scripting but those that know scripting and devs from PA have told us just that:

"it's the same with minor adjustments"

Posted: Thu Dec 23, 2004 1:45 am
by Master-Of-Fungus-Foo-D
Great! So you could import the Runway Sorties theme to PA?

PS: i think they shouldve made an airplane MP level. Right? It could still be invader, just with planes and you'd have to torpedo the other guys' ship and destroyer

Posted: Thu Dec 23, 2004 1:49 am
by General Death
Well I am not sure what that is and the MODTeam was given a MP test map and script with flyable planes. Its very rough but might give someone with the skills the keys to polish their version.