Results 1 to 7 of 7
  1. #1
    kerocs's Avatar
    Join Date
    Mar 2010
    Gender
    male
    Posts
    65
    Reputation
    10
    Thanks
    3

    Creating a Bunker

    I have found the folowing code to summon a bunker:

    SCP(Location){
    //Created By: TheUnkn0wn
    Mod=spawn("script_model",Location);
    Mod setModel("com_plasticcase_enemy");
    Mod Solid();
    Mod CloneBrushmodelToScriptmodel(level.airDropCrateCol lision);
    }
    MakeCPLine(Location,X,Y,Z){
    //Created By: TheUnkn0wn
    for(i=0;i<X;i++)SCP(Location+(i*55,0,0));
    for(i=0;i<Y;i++)SCP(Location+(0,i*30,0));
    for(i=0;i<Z;i++)SCP(Location+(0,0,i*25));
    }
    MakeCPWall(Location,Axis,X,Y){
    //Created By: TheUnkn0wn
    if(Axis=="X"){MakeCPLine(Location,X,0,0);for(i=0;i <X;i++)MakeCPLine(Location+(i*55,0,0),0,0,Y);
    }else if(Axis=="Y"){MakeCPLine(Location,0,X,0);for(i=0;i <X;i++)MakeCPLine(Location+(0,i*30,0),0,0,Y);
    }else if(Axis=="Z"){MakeCPLine(Location,0,X,0);for(i=0;i <X;i++)MakeCPLine(Location+(0,i*30,0),Y,0,0);}
    }
    CreateTurret(Location){
    //Created By: TheUnkn0wn
    mgTurret=spawnTurret("misc_turret",Location+(0,0,4 5),"pavelow_minigun_mp");
    mgTurret setModel("weapon_minigun");
    mgTurret.owner=self.owner;
    mgTurret.team=self.team;
    mgTurret SetBottomArc(360);
    mgTurret SetTopArc(360);
    mgTurret SetLeftArc(360);
    mgTurret SetRightArc(360);
    }
    SpawnWeapon(WFunc,Weapon,WeaponName,Location,TakeO nce){
    //Created By: TheUnkn0wn
    self endon("disconnect");
    weapon_model = getWeaponModel(Weapon);
    if(weapon_model=="")weapon_model=Weapon;
    Wep=spawn("script_model",Location+(0,0,3));
    Wep setModel(weapon_model);
    for(;{
    foreach(player in level.players){
    Radius=distance(Location,player.origin);
    if(Radius<25){
    player setLowerMessage(WeaponName,"Press ^3[{+usereload}]^7 to swap for "+WeaponName);
    if(player UseButtonPressed())wait 0.2;
    if(player UseButtonPressed()){
    if(!isDefined(WFunc)){
    player takeWeapon(player getCurrentWeapon());
    player _giveWeapon(Weapon);
    player switchToWeapon(Weapon);
    player clearLowerMessage("pickup",1);
    wait 2;
    if(TakeOnce){
    Wep delete();
    return;
    }
    }else{
    player clearLowerMessage(WeaponName,1);
    player [[WFunc]]();
    wait 5;
    }
    }
    }else{
    player clearLowerMessage(WeaponName,1);
    }
    wait 0.1;
    }
    wait 0.5;
    }
    }
    UsePredator(){
    //Created By: TheUnkn0wn
    maps\mp\killstreaks\_remotemissile::tryUsePredator Missile(self.pers["killstreaks"][0].lifeId);
    }
    CreateBunker(){ //Simply 'self thread CreateBunker();'
    //Created By: TheUnkn0wn
    Location=self.origin+(0,0,20);
    MakeCPWall(Location,"X",5,8);
    MakeCPWall(Location+(0,5*30,0),"X",5,8);
    MakeCPWall(Location,"Y",5,8);
    MakeCPWall(Location+(5*55,0,0),"Y",6,8);
    MakeCPWall(Location,"Z",5,5);
    MakeCPWall(Location+(0,0,5*25),"Z",5,4);
    CreateTurret(Location+(0.25*(5*55),18,35+(4*30)));
    CreateTurret(Location+(0.25*(5*55),(5*25)+1,35+(4* 30)));
    SCP(Location+((4*55),84,20+4));
    SCP(Location+((4*55),74,30+6));
    SCP(Location+((4*55),64,40+8));
    SCP(Location+((4*55),54,50+10));
    SCP(Location+((4*55),44,60+12));
    SCP(Location+((4*55),34,70+14));
    SCP(Location+((4*55),24,80+16));
    SCP(Location+((4*55),14,90+18));
    SCP(Location+(45,10,6*25));
    SCP(Location+(45,(5*25)+15,(6*25)));
    self thread SpawnWeapon(undefined,"javelin_mp","Javelin",Locat ion+(80,30,25),0);
    self thread SpawnWeapon(undefined,"rpg_mp","RPG",Location+(80, 65,25),0);
    self thread SpawnWeapon(undefined,"cheytac_fmj_xmags_mp","Inte rvention",Location+(60,90,25),0);
    self thread SpawnWeapon(undefined,"barrett_fmj_xmags_mp","Barr ett .50",Location+(60,115,25),0);
    self thread SpawnWeapon(undefined,"frag_grenade_mp","Frag",Loc ation+(115,30,25),0);
    self thread SpawnWeapon(::UsePredator,"com_plasticcase_friendl y","Predator",Location+(165,30,25),0);
    self SetOrigin(Location+(100,100,35));
    }
    MakeBunker(){
    self endon("death");
    self thread CreateBunker();
    }


    But this is something like a template for summoning and i wanted to implement one on a map... what would i need to change to make it work with specific locations and not with the userlocation ? or how would i bind this function to actionslot1 (n) ?

  2. #2
    Stoshy's Avatar
    Join Date
    Jan 2010
    Gender
    male
    Location
    O-('.'Q)
    Posts
    1,427
    Reputation
    15
    Thanks
    287
    My Mood
    Confused
    U know u cud put this .gsc into a code so i wont b long & hard to read

    PLAY STARCRAFT II!? ADD ME! PINOYPUNCHINGBAG@YAHOO.COM OR MY FRIEND CODE 636 STOSHY!


  3. #3
    xZaTiC's Avatar
    Join Date
    Mar 2010
    Gender
    male
    Location
    I live in ur mums tits. (:'
    Posts
    220
    Reputation
    10
    Thanks
    52
    My Mood
    Drunk
    Well, wrong section. Should be in modding or something like that.
    But nice.
    MY GOALS FOR MW2 AND MPGH.NET
    MPGH Goals
    10 Posts [x]
    50 Posts [x]
    100 Posts [x]
    500 Posts []
    1000 Posts []
    Modern Warfare 2 Goals
    Cheating around with aimbot and wallhack. [X]
    Mod a server. [X]
    Make people say i hack even i dont. [...]
    Getting to prestige 9 illegal. [X]



    I LOVE RAGING!

  4. #4
    Insane's Avatar
    Join Date
    Jun 2010
    Gender
    male
    Posts
    9,055
    Reputation
    1007
    Thanks
    1,997
    Search before you post, check the GSC modding section (originally was in the source code) there is a thread on how to get your current location. Plus don't make a bunker, they lag like a son of a bitch
    Insane
    Ex Middleman
    [
    PM|VM]
    |x|x|x|x|x|x|x|



    Quote Originally Posted by Boombox View Post
    Shut the fuck up insane you pussy bitch.
    Quote Originally Posted by arunforce View Post
    Shut the fuck up kid, everything that comes out of your mouth sounds retarded as fuck.

  5. #5
    kerocs's Avatar
    Join Date
    Mar 2010
    Gender
    male
    Posts
    65
    Reputation
    10
    Thanks
    3
    First of all i was told about 5 times that im supposed to post into the help section if i have a question... second i wasnt talking about finding the location, i was guessing until now cause i couldnt really get the bind on actionslot2 to work in combination with quarantine chaos. Furthermore i made my bunker work and it doesnt lagg at all. It only laggs if someone joins since he needs to load all that stuff and i have umts but i hab that before since i spawned about 50 cps on afghan. I guess u guys dont know how to take damge of turrets and make em slow down enemys do u ?

  6. #6
    shahin7777's Avatar
    Join Date
    Jan 2010
    Gender
    male
    Location
    Some where with a lot of hot chicks!
    Posts
    671
    Reputation
    6
    Thanks
    380
    My Mood
    Angelic
    How exactly does it work?
    What do you press to create the bunker?

  7. #7
    Skyline.'s Avatar
    Join Date
    Dec 2009
    Gender
    male
    Posts
    10,160
    Reputation
    403
    Thanks
    1,613
    1. wrong section
    2. put CODE tags around it so it doesnt for 600 pages,
    3. read the rules next time


Similar Threads

  1. [?] Creating walls/bunkers! Thanks for helping :]
    By Imthebosss in forum Call of Duty Modern Warfare 2 GSC Modding Help/Discussion
    Replies: 5
    Last Post: 11-05-2010, 03:25 PM
  2. Creating Bunkers
    By edub18 in forum Call of Duty Modern Warfare 2 GSC Modding Help/Discussion
    Replies: 3
    Last Post: 10-06-2010, 01:48 PM
  3. Replies: 13
    Last Post: 02-09-2006, 11:25 PM
  4. how to create speedhacks?
    By LiLLeO in forum General Game Hacking
    Replies: 5
    Last Post: 01-28-2006, 09:52 AM
  5. Creating A GunzRunnable
    By CrazyDeath in forum Game Hacking Tutorials
    Replies: 7
    Last Post: 01-02-2006, 12:20 AM