Пример #1
0
    def start_destruction(self):
        if self.repeat_end2 == 2 and not self.cargo_container.isNull():
            if self.timer1 == 0:
                self.timer1 = VS.GetGameTime()
            self.cargo_container.Split(75)
            VS.playAnimation("explosion_wave.ani",self.cargo_container.Position(),300)
            VS.playAnimation("explosion_wave.ani",self.cargo_container.Position(),100)
            VS.playAnimation("explosion_wave.ani",self.cargo_container.Position(),700)
            VS.playAnimation("explosion_wave.ani",self.cargo_container.Position(),1000)
            VS.playSound("sfx43.wav",self.cargo_container.Position(),self.cargo_container.GetVelocity())
            VS.playSound("Flux.wav",self.cargo_container.Position(),self.cargo_container.GetVelocity())
            VS.playSound("electricity.wav",self.cargo_container.Position(),self.cargo_container.GetVelocity())

            print "adding particle"
            VS.addParticle(self.cargo_container.Position(),self.cargo_container.GetVelocity(),(1,.2,.2))
            print "added particle"
            unit.setTfgDirective(self.aera_specopp,self.playa,'A')

            print "begin msgs"

            VS.IOmessage (0,"Aera SpecOpp","all","[Translate: Aernoss -> Englysh] Turn your attention <surprise> Entity/self triggered item warp core!")
            VS.IOmessage (5,"Aera SpecOpp","all","[Translate: Aernoss -> Englysh] <fear, anxiety, anger> Filthy human procreate entity/self!")
            VS.IOmessage (12,"Aera SpecOpp","all","[Translate: Aernoss -> Englysh] Group leave fast danger avo...")
            print "ended msgs"
            self.jumpout = 1
            self.repeat_end2 = 0
            print "ended start_destruction"
    def start_destruction(self):
        if self.repeat_end2 == 2 and not self.cargo_container.isNull():
            if self.timer1 == 0:
                self.timer1 = VS.GetGameTime()
            self.cargo_container.Split(75)
            VS.playAnimation("explosion_wave.ani",self.cargo_container.Position(),300)
            VS.playAnimation("explosion_wave.ani",self.cargo_container.Position(),100)
            VS.playAnimation("explosion_wave.ani",self.cargo_container.Position(),700)
            VS.playAnimation("explosion_wave.ani",self.cargo_container.Position(),1000)
            VS.playSound("sfx43.wav",self.cargo_container.Position(),self.cargo_container.GetVelocity())
            VS.playSound("Flux.wav",self.cargo_container.Position(),self.cargo_container.GetVelocity())
            VS.playSound("electricity.wav",self.cargo_container.Position(),self.cargo_container.GetVelocity())

            print("adding particle")
            VS.addParticle(self.cargo_container.Position(),self.cargo_container.GetVelocity(),(1,.2,.2))
            print("added particle")
            unit.setTfgDirective(self.aera_specopp,self.playa,'A')

            print("begin msgs")

            VS.IOmessage (0,"Aera SpecOpp","all","[Translate: Aernoss -> Englysh] Turn your attention <surprise> Entity/self triggered item warp core!")
            VS.IOmessage (5,"Aera SpecOpp","all","[Translate: Aernoss -> Englysh] <fear, anxiety, anger> Filthy human procreate entity/self!")
            VS.IOmessage (12,"Aera SpecOpp","all","[Translate: Aernoss -> Englysh] Group leave fast danger avo...")
            print("ended msgs")
            self.jumpout = 1
            self.repeat_end2 = 0
            print("ended start_destruction")
Пример #3
0
    def Execute(self):
        if 0 in self.triggkey and self.triggkey[3] == 1:
            print "0 in triggkey"
            unit.setTfgDirective(self.guard, self.playa, 'A')
            self.triggkey[3] = 0

        if self.un0.isNull() and self.triggkey[0]:
            print "siege_win"
            self.triggkey[0] = 0
            Director.pushSaveString(
                0, "dynamic_news",
                "siege,start,rlaan,aera,1,0.8,enigma_sector/boondoggles,all")

        if self.un1.isNull() and self.triggkey[1]:
            print "siege_loss"
            self.triggkey[1] = 0
            Director.pushSaveString(
                0, "dynamic_news",
                "siege,start,rlaan,aera,-1,0.8,enigma_sector/boondoggles,all")

        if self.un2.isNull() and self.triggkey[2]:
            print "siege_draw"
            self.triggkey[2] = 0
            Director.pushSaveString(
                0, "dynamic_news",
                "siege,start,rlaan,aera,-1,0.8,enigma_sector/boondoggles,all")

        return 1
    def Execute (self):
        if 0 in self.triggkey and self.triggkey[3] == 1:
            print "0 in triggkey"
            unit.setTfgDirective(self.guard,self.playa,'A')
            self.triggkey[3] = 0

        if self.un0.isNull() and self.triggkey[0]:
            print "siege_win"
            self.triggkey[0] = 0
            Director.pushSaveString(0,"dynamic_news","siege,start,rlaan,aera,1,0.8,enigma_sector/boondoggles,all")

        if self.un1.isNull() and self.triggkey[1]:
            print "siege_loss"
            self.triggkey[1] = 0
            Director.pushSaveString(0,"dynamic_news","siege,start,rlaan,aera,-1,0.8,enigma_sector/boondoggles,all")

        if self.un2.isNull() and self.triggkey[2]:
            print "siege_draw"
            self.triggkey[2] = 0
            Director.pushSaveString(0,"dynamic_news","siege,start,rlaan,aera,-1,0.8,enigma_sector/boondoggles,all")

        return 1
Пример #5
0
    def Execute (self):


# remove this test        self.sysfile = VS.getSystemFile()
#               if self.truck_pirate.getUnitSystemFile()!= VS.getSystemFile():
#                       print "Truck has Jumped Away :-)"
#               else:
#                       print "Truck is still here! :-("








        if self.quest_exit == 1:
            return 0
        if (self.playa):


            if self.jumpout == 1:
                self.end_destruction()

            elif self.cargo_container.getMinDis(self.playa.Position()) < 1000:
                self.start_destruction()

            elif self.cargo_container.getMinDis(self.playa.Position()) < 2500 and not self.cargo_container.isNull():
                if self.repeat_end2 == 1:
                    VS.IOmessage (3,"[Computer]","all","Warning! Annomalous warp echos detected.")
                    print
                    print "Aera Un-Cloaked"
                    print
                    unit.TfgCloak(0,self.aera_specopp)
                    self.repeat_end2 = 2

            elif self.cargo_container.isNull():
                if self.repeat_end2 == 1:
                    print "null activating"
                    VS.IOmessage (3,"[Computer]","all","Warning! De-Cloaking hostiles.")
                    print
                    print "Aera Un-Cloaked"
                    print
                    unit.TfgCloak(0,self.aera_specopp)
                    unit.setTfgDirective(self.aera_specopp,self.playa,'A')
                    VS.IOmessage (0,"Aera SpecOpp","all","[Translate: Aernoss -> Englysh] <surprise> Attention all! <anger> Entity/self valueless takes possession away value.")
                    VS.IOmessage (3,"Aera SpecOpp","all","[Translate: Aernoss -> Englysh] <anger> Filthy human procreate entity/self!  Death done!")
                    self.repeat_end2 = 0



            if unit.TfgisNull(self.aera_specopp):
                self.mission_success()

            if self.jumpout == 1:
                self.end_destruction()


            if self.truck_pirate.getMinDis(self.playa.Position()) < 200:
                if self.repeat_end1 == 2:
                    VS.IOmessage (0,"Sonorous E2","all","I am with Confed Special Service.")
                    VS.IOmessage (0,"Sonorous E2","all","You are hampering a priority 0 operation.")
                    self.confed_epeels2=launch.launch_wave_around_unit("Sonorous A3","confed","epeellcat","default",5,1000,5000,self.playa)
                    VS.IOmessage (5,"Sonorous E2","all","You are Terminated.")
                    self.confed_epeels2.SetTarget(self.playa)
                    self.confed_epeels2.setFgDirective('A')
                    self.repeat_end1 = 3

            elif self.truck_pirate.getMinDis(self.playa.Position()) < 1000:
                if self.repeat_end1 == 1:
                    VS.IOmessage (0,"Smuggler:truck","all","Back off mate, if you know what's good for you.")
                    print "My target is..."

                    global truck_exit
                    truck_exit = 1
                    print truck_exit

                    self.repeat_more = 0
                    self.repeat_less = 0
                    self.repeat_end1 = 2

            elif self.truck_pirate.getMinDis(self.playa.Position()) < 3000:
                if self.repeat_less == 1:
                    VS.IOmessage (0,"Smuggler:truck","all","Please stay away, we are carrying valuable cargo.")
                    self.repeat_more = 1
                    self.repeat_less = 0

            else:
                if self.repeat_more == 1:
                    VS.IOmessage (0,"Smuggler:truck","all","Keep your distance.")
                    self.repeat_more = 0
                    self.repeat_less = 1









#                       self.makeQuestPersistent()
            return 1
    def Execute (self):


# remove this test        self.sysfile = VS.getSystemFile()
#               if self.truck_pirate.getUnitSystemFile()!= VS.getSystemFile():
#                       print "Truck has Jumped Away :-)"
#               else:
#                       print "Truck is still here! :-("








        if self.quest_exit == 1:
            return 0
        if (self.playa):


            if self.jumpout == 1:
                self.end_destruction()

            elif self.cargo_container.getMinDis(self.playa.Position()) < 1000:
                self.start_destruction()

            elif self.cargo_container.getMinDis(self.playa.Position()) < 2500 and not self.cargo_container.isNull():
                if self.repeat_end2 == 1:
                    VS.IOmessage (3,"[Computer]","all","Warning! Annomalous warp echos detected.")
                    print()
                    print("Aera Un-Cloaked")
                    print()
                    unit.TfgCloak(0,self.aera_specopp)
                    self.repeat_end2 = 2

            elif self.cargo_container.isNull():
                if self.repeat_end2 == 1:
                    print("null activating")
                    VS.IOmessage (3,"[Computer]","all","Warning! De-Cloaking hostiles.")
                    print()
                    print("Aera Un-Cloaked")
                    print()
                    unit.TfgCloak(0,self.aera_specopp)
                    unit.setTfgDirective(self.aera_specopp,self.playa,'A')
                    VS.IOmessage (0,"Aera SpecOpp","all","[Translate: Aernoss -> Englysh] <surprise> Attention all! <anger> Entity/self valueless takes possession away value.")
                    VS.IOmessage (3,"Aera SpecOpp","all","[Translate: Aernoss -> Englysh] <anger> Filthy human procreate entity/self!  Death done!")
                    self.repeat_end2 = 0



            if unit.TfgisNull(self.aera_specopp):
                self.mission_success()

            if self.jumpout == 1:
                self.end_destruction()


            if self.truck_pirate.getMinDis(self.playa.Position()) < 200:
                if self.repeat_end1 == 2:
                    VS.IOmessage (0,"Sonorous E2","all","I am with Confed Special Service.")
                    VS.IOmessage (0,"Sonorous E2","all","You are hampering a priority 0 operation.")
                    self.confed_epeels2=launch.launch_wave_around_unit("Sonorous A3","confed","epeellcat","default",5,1000,5000,self.playa)
                    VS.IOmessage (5,"Sonorous E2","all","You are Terminated.")
                    self.confed_epeels2.SetTarget(self.playa)
                    self.confed_epeels2.setFgDirective('A')
                    self.repeat_end1 = 3

            elif self.truck_pirate.getMinDis(self.playa.Position()) < 1000:
                if self.repeat_end1 == 1:
                    VS.IOmessage (0,"Smuggler:truck","all","Back off mate, if you know what's good for you.")
                    print("My target is...")

                    global truck_exit
                    truck_exit = 1
                    print(truck_exit)

                    self.repeat_more = 0
                    self.repeat_less = 0
                    self.repeat_end1 = 2

            elif self.truck_pirate.getMinDis(self.playa.Position()) < 3000:
                if self.repeat_less == 1:
                    VS.IOmessage (0,"Smuggler:truck","all","Please stay away, we are carrying valuable cargo.")
                    self.repeat_more = 1
                    self.repeat_less = 0

            else:
                if self.repeat_more == 1:
                    VS.IOmessage (0,"Smuggler:truck","all","Keep your distance.")
                    self.repeat_more = 0
                    self.repeat_less = 1









#                       self.makeQuestPersistent()
            return 1