what about PA scripting?

Post any questions about MOH:PA mapping, modeling, scripting or skinning here.

Moderator: Moderators

Post Reply
Master-Of-Fungus-Foo-D
Muffin Man
Posts: 1544
Joined: Tue Jan 27, 2004 12:33 am
Location: cali, United States

what about PA scripting?

Post 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?
Image
The Fungus Theme song!!!

Code: Select all

while (local.player istouching self)
lizardkid
Windows Zealot
Posts: 3672
Joined: Fri Mar 19, 2004 7:16 pm
Location: Helena MT

Post 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:
Moderator

۞
Abyssus pro sapientia
Olympus pro Ignarus
۞

AND STUFF™ © 2006
User avatar
General Death
Moderator
Posts: 1116
Joined: Thu Nov 21, 2002 2:33 am
Location: NC, USA
Contact:

Post 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"
Image
Master-Of-Fungus-Foo-D
Muffin Man
Posts: 1544
Joined: Tue Jan 27, 2004 12:33 am
Location: cali, United States

Post 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
Image
The Fungus Theme song!!!

Code: Select all

while (local.player istouching self)
User avatar
General Death
Moderator
Posts: 1116
Joined: Thu Nov 21, 2002 2:33 am
Location: NC, USA
Contact:

Post 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.
Image
Post Reply