U know u cud put this .gsc into a code so i wont b long & hard to read
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) ?
U know u cud put this .gsc into a code so i wont b long & hard to read
Well, wrong section. Should be in modding or something like that.
But nice.
MY GOALS FOR MW2 AND MPGH.NETMPGH 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!
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
Ex Middleman
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 ?
How exactly does it work?
What do you press to create the bunker?
1. wrong section
2. put CODE tags around it so it doesnt for 600 pages,
3. read the rules next time