Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 10758


Ignore:
Timestamp:
Nov 2, 2015, 4:33:32 PM (9 years ago)
Author:
paulsc
Message:

Corrected ally behavoiur. Friendly fire needs fixing though

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/campaignHS15/data/levels/Campaign1.oxw

    r10754 r10758  
    55    screenshot = "missionOne.png"
    66/>
    7 
    8 <!-- Coordinatesystem as following: (y, z, x) -->
    97
    108<?lua
     
    6159
    6260    <GlobalQuest id="quest1">
    63         <QuestDescription title="Reach the Station A!" description="Commander we observed some alien activity on our radars. We suppose they want to attack our shuttle! You need to upgrade your spaceship. So hurry up and move your ass to this dock on your [direction] side!" failMessage="" completeMessage="Good job, we still have some time to prepare for their attack." />
     61        <QuestDescription title="Reach the Station A!" description="" failMessage="" completeMessage="" />
    6462        <hints>
    6563            <QuestHint id="quest1hint1" />
     
    186184    </EventMultiTrigger>
    187185
    188     <!-- TODO: fictive unit; to be added later -->
    189     <DistanceTrigger name="joinedUnit" position="3000,-2000,0" distance=100 target="SpaceShip" beaconMode="exclude" targetname="NPC" stayactive=true />
    190     <Billboard position="3000,-1000,0" amplitude=1 material="Flares/lensflare" colour="1,0,0.05" />     <!-- For debugging puropses -->
     186    <DistanceTrigger name="joinedUnit" active=false position="3000,-2000,0" distance=100 target="SpaceShip" beaconMode="exclude" targetname="NPC" stayactive=true>
     187        <events>
     188            <activity>
     189                    <EventListener event="dockedA" />
     190            </activity>
     191        </events>
     192    </DistanceTrigger>
    191193
    192194    <EventMultiTrigger name="wave1" activations="1" stayactive="true" delay=4>
     
    423425    <!-- (Temporary) Template for stations. Used to define common features of all Stations. -->
    424426    <Template name="station">
    425         <Pawn mass=10000000 collisionType=dynamic friction=0.01>
     427        <Pawn mass=10000 collisionType=dynamic friction=0.01>
    426428          <attached>
    427429            <Model mesh="HydroHarvester.mesh" position="0,0,0" scale=50 />
     
    554556
    555557    <!-- FPS Player as destination of dock C-->
    556     <FpsPlayer team=0 template = "fps" rotationaxis="0,0,1" radarname="First Person Player" position="0,-2300,1201">
     558    <FpsPlayer team=0 template = "fps" rotationaxis="0,0,1" radarname = "First Person Player" position = "0,-2300,1201">
    557559        <attached>
    558560            <DockingTarget name="fpsMode" />
     
    642644    ?>
    643645
    644     <!-- ws, 3000,-2000 -->
     646    <!-- Allies, 3000,-2000 -->
    645647    <?lua
    646648    for i = 1, allies, 1
     
    665667        </attached>
    666668        <controller>
    667             <WaypointPatrolController accuracy=1000 name="allyController" alertnessradius=500 team=0 active=false>
    668                 <waypoints>
    669                     <StaticEntity position="0,0,0" />
    670                 </waypoints>
     669            <WaypointPatrolController accuracy=100 name="allyController" alertnessradius=5000 team=0 active=false>
    671670                <events>
    672671                    <activity>
     
    685684    ?>
    686685    <?lua
    687     for j = enemies, enemies+(3*waves), 3
     686    for i = 1, enemies, 1
    688687    do
    689     ?>
    690     <?lua
    691     for i = 1, j, 1
    692     do
    693     x = math.cos(math.pi/(8+4*(k-1))*(i+1))*1500
    694     y = math.sin(math.pi/(8+4*(k-1))*(i+1))*1500
     688    x = math.cos(math.pi/(8)*(i+1))*1500
     689    y = math.sin(math.pi/(8)*(i+1))*1500
    695690    ?>
    696691    <SpaceShip visible=false active=false name="attackers<?lua print(k)?>" radarname="Attacker" position="<?lua print(x)?>,<?lua print(y)?>,<?lua print(math.pow(-1,i)*250) ?>" lookat="0,0,0" team=1>
     
    710705        </attached>
    711706        <controller>
    712             <WaypointPatrolController name="attackController" accuracy=100 alertnessradius=200 team=1 active=false>
     707            <WaypointPatrolController name="attackController" accuracy=100 alertnessradius=100 team=1 active=false>
    713708                <waypoints>
    714709                    <Attacher target="transporter" deletewithparent=false />
     
    724719    <?lua end ?>
    725720    <?lua end ?>
    726     <?lua end ?>
    727721
    728722
Note: See TracChangeset for help on using the changeset viewer.