Page 1 of 3 123 LastLast
Results 1 to 10 of 23

Thread: Cod2 Botzombi AC130 Script

  1. #1
    Private
    Join Date
    Nov 2015
    Posts
    45
    Thanks
    0
    Thanked 7 Times in 7 Posts

    Cod2 Botzombi AC130 Script

    Hy!
    One AC130 I would like an airplane to load up the stick zombie into the menu of buying my manner somebody would write here a script?

  2. #2
    Private
    Join Date
    Nov 2015
    Posts
    45
    Thanks
    0
    Thanked 7 Times in 7 Posts

    Cod2 AC130 Script botzombie

    Hello everyone!
    Cod2 stick botzombie it would like to be loaded up into the menu of buying my manner one AC130 airplane somebody irna for me scripts?
    Answers greet!

  3. #3
    Assadministrator IzNoGoD's Avatar
    Join Date
    Aug 2012
    Posts
    1,718
    Thanks
    17
    Thanked 1,068 Times in 674 Posts
    Song lyrics:
    Code:
    Hy
    One AC130
    I would like an airplane
    to load up the stick
    
    Zombie into the menu
    of buying my manner
    somebody would write
    here a script
    Code:
    hello everyone
    Cod2 stick botzombie
    it would like to be
    loaded up into the menu
    
    of buying my manner
    one AC130 airplane
    somebody irna
    for me scripts
    
    answers greet
    tl;dr:
    stop using google translate.
    "Does not work" is an error report for a bug between keyboard and chair.

    All hail Artie Effem

  4. The Following 3 Users Say Thank You to IzNoGoD For This Useful Post:

    kung foo man (22nd March 2016),thOuMta (22nd March 2016),YuriJurek (22nd March 2016)

  5. #4
    Private
    Join Date
    Nov 2015
    Posts
    45
    Thanks
    0
    Thanked 7 Times in 7 Posts

    Cod2 AC130 Script

    AC130 Script pls

    stick zombie into a manner would be needed one AC130 script

  6. #5
    Assadministrator IzNoGoD's Avatar
    Join Date
    Aug 2012
    Posts
    1,718
    Thanks
    17
    Thanked 1,068 Times in 674 Posts
    I merged your double post. You did not provide any new information, and your english is still shit.
    "Does not work" is an error report for a bug between keyboard and chair.

    All hail Artie Effem

  7. #6
    Private
    Join Date
    Nov 2015
    Posts
    45
    Thanks
    0
    Thanked 7 Times in 7 Posts
    Hello everyone! This stick zombie I would like to load it up into my manner. But is out of order
    PHP Code:
    ac130()
    {
    self endon("disconnect");
    self endon("killed_player");
        if(
    isDefined(level.ac130_act))
        {
            if(!
    self.langself iprintlnbold("^1AC130 is already one on the track! call me later!"); else self iprintlnbold("^1AC130 is already one on the track! call me later!");
            return;
        }
    self.last_time_used_ac130 gettime();
    self setclientcvar("cg_thirdperson","0");
    self.ac130=0;
    self.ac130_act=self;
    level.ac130_act=self;
    self.ac130=1;
    self.predator_act=1;
    self.airstrike_act=1;
    self.inv=true;
    jatekos getentarray("player""classname");
    for(
    i=0;i<jatekos.size;i++)
    {
    if(
    self.pers["team"]==jatekos[i].pers["team"])
        
    jatekos[iplaylocalsound("use_ac130");
    else
        
    jatekos[iplaylocalsound("use_enemy_ac130");

    }
    self._oldpos=self.origin;
    self setorigin(ac_map());
    cost=15000;
    /*self thread scripts\bzmod::money(cost*(-1)); 
    //if(!self.lang) self iprintlnbold("^2AC 130 ^5Megvéve ^3"+cost+" ^2$"); else self iprintlnbold("^2AC 130 ^Buyed ^3"+cost+" ^2$");*/
    self._ac=spawn("script_origin"self.origin);
    self._ac_model=spawn("script_model",self.origin+(1000,0,0));
    self._ac.angles=(0,40,0);
    self._ac_model.angles=(0,40,0);
    self._ac_model linkTo(self._ac);
    self setorigin(self._ac_model.origin);
    self hide();
    self linkto(self._ac_model);
    self._ac_model setmodel("xmodel/vehicle_condor");
    self._ac_model playloopsound("gunship_ambient");


    self thread ac_move();
    self disableweapon();
    self.ac_gun=1;
    wait 1.5;
    self.inv=true;
    self thread ac_gun();
    self thread ac_gun_switch();
    self._ac_gun1_ammo=400;
    self._ac_gun2_ammo=100;
    self._ac_gun3_ammo=50;
    self.hud_ac_gun newClientHudElem(self);
    self.hud_ac_gun setShader("gunship_overlay_25mm"128128);
    self.hud_ac_gun.alpha 1;
    self.hud_ac_gun.alignX "center";
    self.hud_ac_gun.alignY "middle";
    self.hud_ac_gun.sort 9999;
    self.hud_ac_gun.320;
    self.hud_ac_gun.240;
    self.hud_ac_gun.color = (1,0,0);
    self thread ac130_hud();
    }
    ac_gun_switch()
    {
    self endon("disconnect");
    self endon("killed_player");
    self endon("ac130_end");
        for(;;)
        {
        
    self disableweapon();

            if(
    self usebuttonpressed())
            {
                
    self.ac_gun++;
                if(
    self.ac_gun>3)
                    
    self.ac_gun=1;

                if(
    self.ac_gun==1)
                {
                    
    self.hud_ac_gun setShader("gunship_overlay_25mm"128128);
                    
    self.hud_ac_gun.color = (1,0,0);
                }
                if(
    self.ac_gun==2)
                {
                    
    self.hud_ac_gun setShader("gunship_overlay_40mm"256256);
                    
    self.hud_ac_gun.color = (0,1,0);
                }
                if(
    self.ac_gun==3)
                {
                    
    self.hud_ac_gun setShader("gunship_overlay_105mm"512512);
                    
    self.hud_ac_gun.color = (0,1,1);
                }
            
    wait 0.5;
            }
        
    wait 0.005;
        }
    }

    ac_gun()
    {
    self endon("disconnect");
    self endon("killed_player");
    self endon("ac130_end");

        
        for(;;)
        {
            if(
    self.ac_gun==1)
            {
                if(
    self attackbuttonpressed() && isalive(self) && self._ac_gun1_ammo>0)
                {
                    
    self playsound("gunship_25mm_fire");
                    
    earthquake(0.3,0.5self.origin80);
                    
    vec=anglestoforward(self getplayerangles());
                    
    trace=bullettrace(self geteye()+(0,0,18),self geteye()+(20000*vec[0],20000*vec[1],20000*vec[2]+18),true,self);

                    if(
    isDefined(self.acsound))
                    
    self.acsound delete();

                    
    self.acsound spawn("script_origin",trace["position"]);

                    
    pos trace["position"];
                    
    bullet spawn("script_model"self.origin);
                    
    bullet setmodel("xmodel/prop_mortar_ammunition");
                    
    bullet.angles self getplayerangles();
                    
    bullet moveto(pos0.2);
                    
    wait 0.25;

                    if(
    isDefined(trace["surfacetype"]) && trace["surfacetype"] == "water")
                    {
                        
    playfx(level._effect["water_small"],trace["position"]);
                        
    self.acsound playsound("bullet_small_water");
                    }
                    else
                    {
                    
    playfx(level._effect["ac25mm"],trace["position"]);
                    }
                    
    bullet delete();
                    
    self._ac_gun1_ammo--;
                    
    self FinishPlayerDamage (self500"MOD_RIFLE_BULLET""d2_mp"self.origin, (0,0,0), "none",0); 
                    
    zoms=getentarray("script_model","classname");
                    for(
    i=0;i<zoms.size;i++)
                    if(
    isdefined(zoms[i].id))
                    {
                        {
                            {
                                if(
    distance(trace["position"],zoms[i].origin)<80)
                                {
                                
    earthquake(0.5,1trace["position"], 80);
                                
    zoms[iFinishPlayerDamage (zoms[i], self500"MOD_RIFLE_BULLET""d2_mp",zoms[i].origin, (0,0,0), "none",0);
                                {
                                if(!
    zoms[i].boss)
                                
    zoms[i].trig notify("damage",int(level.zommaxhealth/800)+5000,self,true); 
                                else
                                
    zoms[i].trig notify("damage",int(level.zommaxhealth/1600)+5000,self,true);
                                } 
                                }
                            }
                        }
                    }
                }
            }

            if(
    self.ac_gun==2)
            {

                if(
    self attackbuttonpressed() && isalive(self) && self._ac_gun2_ammo>0)
                {
                    
    self playsound("gunship_40mm_fire");
                    
    earthquake(0.7,0.7self.origin80);
                    
    vec=anglestoforward(self getplayerangles());
                    
    trace=bullettrace(self geteye()+(0,0,18),self geteye()+(20000*vec[0],20000*vec[1],20000*vec[2]+18),true,self);

                    if(
    isDefined(self.acsound))
                        
    self.acsound delete();

                    
    self.acsound spawn("script_origin",trace["position"]);

                    if(
    isDefined(trace["surfacetype"]) && trace["surfacetype"] == "water")
                    {
                        
    playfx(level._effect["water"],trace["position"]);
                        
    self.acsound playsound("rocket_explode_water");
                    }
                    else
                    {
                        
    playfx(level._effect["ac40mm"],trace["position"]);
                        
    self.acsound playsound("rocket_explode_wood");
                    }
                    
    self._ac_gun2_ammo--;
                    
    self FinishPlayerDamage (self1000"MOD_RIFLE_BULLET""d6_mp"self.origin, (0,0,0), "none",0); 
                    
    zoms=getentarray("script_model","classname");
                    for(
    i=0;i<zoms.size;i++)
                    if(
    isdefined(zoms[i].id))
                    {
                        {
                            {
                                if(
    distance(trace["position"],zoms[i].origin)<150)
                                {
                                
    earthquake(0.5,1trace["position"], 150);
                                
    zoms[iFinishPlayerDamage (zoms[i], self1000"MOD_RIFLE_BULLET""panzerschreck_mp"self.origin + (0,0,-10), vectornormalize(zoms[i].origin - (trace["position"] - (00800))), "none"0);
                                
    zoms[iFinishPlayerDamage (zoms[i], self1000"MOD_RIFLE_BULLET""panzerschreck_mp"self.origin + (0,0,-10), vectornormalize(zoms[i].origin - (trace["position"] - (00800))), "none"0);
                                
    zoms[iFinishPlayerDamage (zoms[i], self1000"MOD_RIFLE_BULLET""panzerschreck_mp"self.origin + (0,0,-10), vectornormalize(zoms[i].origin - (trace["position"] - (00800))), "none"0);
                                
    zoms[iFinishPlayerDamage (zoms[i], self1000"MOD_RIFLE_BULLET""d6_mp",zoms[i].origin, (0,0,0), "none",0);
                                if(!
    zoms[i].boss)
                                
    zoms[i].trig notify("damage",int(level.zommaxhealth/800)+10000,self,true); 
                                else
                                
    zoms[i].trig notify("damage",int(level.zommaxhealth/1600)+10000,self,true);
                                }
                            }
                        }
                    }
                
    wait 0.5;
                }
            }
            if(
    self.ac_gun==3)
            {
                if(
    self attackbuttonpressed() && isalive(self) && self._ac_gun3_ammo>0)
                {
                    
    self playsound("gunship_105mm_fire");
                    
    earthquake(1,1self.origin80);
                    
    vec=anglestoforward(self getplayerangles());
                    
    trace=bullettrace(self geteye()+(0,0,18),self geteye()+(20000*vec[0],20000*vec[1],20000*vec[2]+18),true,self);

                    if(
    isDefined(self.acsound))
                        
    self.acsound delete();

                    
    self.acsound spawn("script_origin",trace["position"]);


                    
    pos trace["position"];
                    
    bullet spawn("script_model"self.origin);
                    
    bullet.angles self getplayerangles();
                    
    bullet setmodel("xmodel/predator_missle");
                    
    bullet moveto(pos0.8);
                    
    wait 0.8;

                    if(
    isDefined(trace["surfacetype"]) && trace["surfacetype"] == "water")
                    {
                        
    playfx(level._effect["water_big"],trace["position"]);
                        
    self.acsound playsound("rocket_explode_water");
                    }
                    else
                    {
                        
    playfx(level._effect["ac105mm"],trace["position"]);
                        
    self.acsound playsound("rocket_explode_wood");
                    }
                    
    bullet delete();
                    
    self._ac_gun3_ammo--;
                    
    self FinishPlayerDamage (self5000"MOD_RIFLE_BULLET""d6_mp"self.origin, (0,0,0), "none",0); 
                    
    zoms=getentarray("script_model","classname");
                    for(
    i=0;i<zoms.size;i++)
                    if(
    isdefined(zoms[i].id))
                    {
                        {
                            {
                                if(
    distance(trace["position"],zoms[i].origin)<500)
                                {
                                
    earthquake(0.5,1trace["position"], 500);
                                
    zoms[iFinishPlayerDamage (zoms[i], self1500"MOD_RIFLE_BULLET""panzerschreck_mp"self.origin + (0,0,-10), vectornormalize(zoms[i].origin - (trace["position"] - (00800))), "none"0);
                                
    zoms[iFinishPlayerDamage (zoms[i], self1500"MOD_RIFLE_BULLET""panzerschreck_mp"self.origin + (0,0,-10), vectornormalize(zoms[i].origin - (trace["position"] - (00800))), "none"0);
                                
    zoms[iFinishPlayerDamage (zoms[i], self1500"MOD_RIFLE_BULLET""panzerschreck_mp"self.origin + (0,0,-10), vectornormalize(zoms[i].origin - (trace["position"] - (00800))), "none"0);
                                
    zoms[iFinishPlayerDamage (zoms[i], self1500"MOD_RIFLE_BULLET""d6_mp",zoms[i].origin, (0,0,0), "none",0);
                                if(!
    zoms[i].boss)
                                
    zoms[i].trig notify("damage",int(level.zommaxhealth/8000)+15000,self,true); 
                                else
                                
    zoms[i].trig notify("damage",int(level.zommaxhealth/16000)+15000,self,true);
                                }
                            }
                        }
                    }
                    
                
    self playlocalsound("gunship_105mm_reload");
                
    wait 1;
                }
            }
        
    wait 0.00001;
        }
    }
    ac_move()
    {
    self endon("disconnect");
    self endon("killed_player");
    self endon("ac130_killed");

    self._ac rotateyaw(1440120);
    wait 30//ac130 time ac time
    self._ac moveto(self._ac.origin+(0,-3000,0),4,1,1);
    wait 4;
    self notify("ac130_end");
    self unlink();
    self._ac_model stopLoopSound();
    self setorigin(self._oldpos);
    self show();
    self.ac_gun=0;
    self.ac130_act=0;
    self.predator_act=0;
    self.airstrike_act=0;
    self._ac delete();
    self._ac_model unlink();
    self._ac_model delete();
    self.hud_ac_gun destroy();
    self.acido destroy();
    self.hud_ac_info destroy();
    self enableweapon();
    self.inv=false;
    level.ac130_act=undefined;

    }
    ac_killed()
    {
    if(
    isdefined(level.ac130_act) && level.ac130_act==self)
    {
    self notify("ac130_end");
    self notify("ac130_killed");
    self unlink();
    self show();
    self._ac_model stopLoopSound();
    self._ac delete();
    self._ac_model unlink();
    self._ac_model delete();
    self.ac_gun=0;
    self enableweapon();
    self.ac130_act=0;
    self.predator_act=0;
    self.airstrike_act=0;
    self.inv=false;
    self.ac=0;
    level.ac130_act=undefined;
    if(
    isdefined(self.hud_ac_gun))
        
    self.hud_ac_gun destroy();
    if(
    isdefined(self.hud_ac_info))
        
    self.hud_ac_info destroy();
    if(
    isdefined(self.acido))
        
    self.acido destroy();
    }
    else if(
    isdefined(level.ac130_act) && (!isPlayer(level.ac130_act) || !isAlive(level.ac130_act)))
    {
        
    level.ac130_act=undefined;
    }
    }
    ac130_hud()
    {
    self.hud_ac_info newClientHudElem(self);
    self.hud_ac_info.320;
    self.hud_ac_info.440;
    self.hud_ac_info.alignx "left";
    self.hud_ac_info.horzAlign "left";
    self.hud_ac_info.fontScale 1.1;
    self.hud_ac_info.label = &"^1Press ^2F^1 to switch weapons!";
    self.acido newClientHudElem(self);
    self.acido.horzAlign "fullscreen";
    self.acido.vertAlign "fullscreen";
    self.acido.320;
    self.acido.60;
    self.acido.alignX "center";
    self.acido.fontScale 1.5;
    self.acido setTimer(30);
    self.acido.color = (1,0,0);
    }
    money(x)
    {
    if(
    self.money>=x)
    self.money-=x;
    else
    self iprintlnbold("^1No Enought Money");

    Last edited by IzNoGoD; 25th March 2016 at 17:42.

  8. #7
    Assadministrator IzNoGoD's Avatar
    Join Date
    Aug 2012
    Posts
    1,718
    Thanks
    17
    Thanked 1,068 Times in 674 Posts
    Then put in in the correct order.

    Seriously, if you cannot make yourself and/or your point clear in english we cannot help you in any form.
    "Does not work" is an error report for a bug between keyboard and chair.

    All hail Artie Effem

  9. #8
    Private
    Join Date
    Nov 2015
    Posts
    45
    Thanks
    0
    Thanked 7 Times in 7 Posts
    I'm From Hungary

  10. #9
    Private First Class YuriJurek's Avatar
    Join Date
    Jun 2013
    Posts
    219
    Thanks
    152
    Thanked 88 Times in 47 Posts
    And I am hungry.

  11. #10
    Private
    Join Date
    Nov 2015
    Posts
    45
    Thanks
    0
    Thanked 7 Times in 7 Posts
    Please help

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •