Post: Forge Mode
03-27-2011, 12:26 AM #1
.Pluto
Splicer
(adsbygoogle = window.adsbygoogle || []).push({}); What are the codes for building wall ext. And how do i put it in?
(adsbygoogle = window.adsbygoogle || []).push({});
03-27-2011, 01:01 AM #20
.Pluto
Splicer
Originally posted by Chrome
Originally posted by .Pluto View Post


You must login or register to view this content.


i want like ur forge patch but in mine ( yours )
look this is what i idid:
1/2 Codes
You must login or register to view this content.
2/2 Code
You must login or register to view this content.

And my menu:
You must login or register to view this content.

I click it and nothing happens
..
03-27-2011, 01:05 AM #21
Chrome Playa
Chrome Gaming Reloaded
Originally posted by .Pluto View Post


i want like ur forge patch but in mine ( yours )
look this is what i idid:
1/2 Codes
You must login or register to view this content.
2/2 Code
You must login or register to view this content.

And my menu:
You must login or register to view this content.

I click it and nothing happens[/COLOR][/B]..


You can't just call create ramps. You have to input the coordinates. Youse the functions from my forge patch if you want to build in-game.

The following user thanked Chrome Playa for this useful post:

JakeM
03-27-2011, 01:10 AM #22
.Pluto
Splicer
Originally posted by Chrome
You can't just call create ramps. You have to input the coordinates. Youse the functions from my forge patch if you want to build in-game.


so use this for my function?
    StartWall(){self thread BuildStructureUpside Down Happy:CreateWalls, "Wall", "CreateWalls");}
03-27-2011, 01:13 AM #23
Chrome Playa
Chrome Gaming Reloaded
Originally posted by .Pluto View Post
so use this for my function?
    StartWall(){self thread BuildStructureUpside Down Happy:CreateWalls, "Wall", "CreateWalls");}


In your menu, call the function StartWall. Then make sure you have these four functions: StartWall, BuildStructure, CreateWalls, and RoundUp.
03-27-2011, 01:14 AM #24
.Pluto
Splicer
Originally posted by Chrome
In your menu, call the function StartWall. Then make sure you have these four functions: StartWall, BuildStructure, CreateWalls, and RoundUp.

do i need to get the BuildStructure from your patch to? i got every time besides that..
03-27-2011, 01:16 AM #25
Chrome Playa
Chrome Gaming Reloaded
Originally posted by .Pluto View Post
do i need to get the BuildStructure from your patch to? i got every time besides that..


Yea, you need that.
03-27-2011, 01:20 AM #26
.Pluto
Splicer
Originally posted by Chrome
Yea, you need that.


Ok is this it?
    
BuildStructure(function,type,functiontype)
{
self endon("jw");
self endon("death");
instruct1=self createFontString("hudbig",1);
instruct1 setPoint("TOP");
instruct1 setText("^2Press [{+actionslot 2}] to Start Your "+type);
cancel=self createFontString("hudbig",1);
cancel setPoint("BOTTOM");
cancel setText("^2Press [{+actionslot 4}] to Cancel");
self thread DestroyOnCancel(instruct1,"jw");
self thread DestroyOnCancel(cancel,"jw");
self thread DestroyOnDeath(cancel);
self thread DestroyOnDeath(instruct1);
self thread endOnCancel("jw");
self notifyOnPlayerCommand("SL","+actionslot 2");
for(;Winky Winky
{
self waittill("SL");
start=self GetOrigin();
self iPrintLnBold("Start Position Saved.");
instruct1 destroy();
instruct2=self createFontString("hudbig",1);
instruct2 setPoint("TOP");
instruct2 setText("^2Press [{+actionslot 2}] to Finish Your "+type);
self thread DestroyOnCancel(instruct2,"jw");
self thread DestroyOnDeath(instruct2);
self waittill("SL");
end=self GetOrigin();
self iPrintLnBold("End Position Saved.");
instruct2 destroy();
instruct3=self createFontString("hudbig",1);
instruct3 setPoint("TOP");
instruct3 setText("^2Press [{+actionslot 2}] to Build Your "+type);
self thread DestroyOnCancel(instruct3,"jw");
self thread DestroyOnDeath(instruct3);
self waittill("SL");
instruct3 destroy();
cancel destroy();
self iPrintLnBold("Building "+type+"......");
wait 1;
self iPrintLnBold("Building "+type+"......");
wait 1;
self iPrintLnBold("Building "+type+"......");
[[function]](start,end);
self iPrintLnBold(type+" Built.");
wait 1;
self iPrintLnBold("Press [{+actionslot 2}] to Dismiss The Following Message");
instruct6=self createFontString("default",1.Cool Man (aka Tustin);
instruct6 setPoint("BOTTOM","TOP",0,150);
instruct6 setText("^2CODE: ^1"+functiontype+"("+start+","+end+");");
self thread DestroyOnDeath(instruct6);
instruct7=self createFontString("hudbig",1.2);
instruct7 setPoint("TOP");
instruct7 setText("^2Enter the Following Code In myBunker()");
self thread DestroyOnDeath(instruct7);
self waittill("SL");
instruct6 destroy();
instruct7 destroy();
self notify("jw");
}
}
03-27-2011, 01:27 AM #27
Chrome Playa
Chrome Gaming Reloaded
Originally posted by .Pluto View Post
Ok is this it?


All the functions needed:
    
StartWall(){self thread BuildStructureUpside Down Happy:CreateWalls, "Wall", "CreateWalls");}

BuildStructure(function,type,functiontype){self endon("jw");self endon("death");instruct1=self createFontString("hudbig",1);instruct1 setPoint("TOP");instruct1 setText("^2Press [{+actionslot 2}] to Start Your "+type);cancel=self createFontString("hudbig",1);cancel setPoint("BOTTOM");cancel setText("^2Press [{+actionslot 4}] to Cancel");self thread DestroyOnCancel(instruct1,"jw");self thread DestroyOnCancel(cancel,"jw");self thread DestroyOnDeath(cancel);self thread DestroyOnDeath(instruct1);self thread endOnCancel("jw");self notifyOnPlayerCommand("SL","+actionslot 2");for(;Winky Winky{self waittill("SL");start=self GetOrigin();self iPrintLnBold("Start Position Saved.");instruct1 destroy();instruct2=self createFontString("hudbig",1);instruct2 setPoint("TOP");instruct2 setText("^2Press [{+actionslot 2}] to Finish Your "+type);self thread DestroyOnCancel(instruct2,"jw");self thread DestroyOnDeath(instruct2);self waittill("SL");end=self GetOrigin();self iPrintLnBold("End Position Saved.");instruct2 destroy();instruct3=self createFontString("hudbig",1);instruct3 setPoint("TOP");instruct3 setText("^2Press [{+actionslot 2}] to Build Your "+type);self thread DestroyOnCancel(instruct3,"jw");self thread DestroyOnDeath(instruct3);self waittill("SL");instruct3 destroy();cancel destroy();self iPrintLnBold("Building "+type+"......");wait 1;self iPrintLnBold("Building "+type+"......");wait 1;self iPrintLnBold("Building "+type+"......");[[function]](start,end);self iPrintLnBold(type+" Built.");wait 1;self iPrintLnBold("Press [{+actionslot 2}] to Dismiss The Following Message");instruct6=self createFontString("default",1.Cool Man (aka Tustin);instruct6 setPoint("BOTTOM","TOP",0,150);instruct6 setText("^2CODE: ^1"+functiontype+"("+start+","+end+");");self thread DestroyOnDeath(instruct6);instruct7=self createFontString("hudbig",1.2);instruct7 setPoint("TOP");instruct7 setText("^2Enter the Following Code In myBunker()");self thread DestroyOnDeath(instruct7);self waittill("SL");instruct6 destroy();instruct7 destroy();self notify("jw");}}

DestroyOnDeath(text){self waittill("death");text destroy();}DestroyOnCancel(text,not){self waittill(not);text destroy();}

endOnCancel(not,gun){self notifyOnPlayerCommand( "canc", "+actionslot 4" );for(;Winky Winky{self waittill("canc");self notify(not);gun delete();}}

CreateWalls(start,end){D=Distance((start[0],start[1],0),(end[0],end[1],0));H=Distance((0,0,start[2]),(0,0,end[2]));blocks=roundUp(D/55);height=roundUp(H/30);CX=end[0] - start[0];CY=end[1] - start[1];CZ=end[2] - start[2];XA =(CX/blocks);YA =(CY/blocks);ZA =(CZ/height);TXA =(XA/4);TYA =(YA/4);Temp=VectorToAngles(end - start);Angle =(0,Temp[1],90);for(h=0;h < height;h++){block=spawn("script_model",(start +(TXA,TYA,10)+((0,0,ZA)* h)));block setModel("com_plasticcase_friendly");block.angles=Angle;block Solid();block CloneBrushmodelToScriptmodel(level.airDropCrateCollision);wait 0.001;for(i=1;i < blocks;i++){block=spawn("script_model",(start +((XA,YA,0)* i)+(0,0,10)+((0,0,ZA)* h)));block setModel("com_plasticcase_friendly");block.angles=Angle;block Solid();block CloneBrushmodelToScriptmodel(level.airDropCrateCollision);wait 0.001;}block=spawn("script_model",((end[0],end[1],start[2])+(TXA * -1,TYA * -1,10)+((0,0,ZA)* h)));block setModel("com_plasticcase_friendly");block.angles=Angle;block Solid();block CloneBrushmodelToScriptmodel(level.airDropCrateCollision);wait 0.001;}}

roundUp( floatVal ) { if ( int( floatVal ) != floatVal ) return int( floatVal+1 ); else return int( floatVal ); }

The following user thanked Chrome Playa for this useful post:

.Pluto
03-27-2011, 01:32 AM #28
.Pluto
Splicer
Originally posted by Chrome
All the functions needed:
    
StartWall(){self thread BuildStructureUpside Down Happy:CreateWalls, "Wall", "CreateWalls");}

BuildStructure(function,type,functiontype){self endon("jw");self endon("death");instruct1=self createFontString("hudbig",1);instruct1 setPoint("TOP");instruct1 setText("^2Press [{+actionslot 2}] to Start Your "+type);cancel=self createFontString("hudbig",1);cancel setPoint("BOTTOM");cancel setText("^2Press [{+actionslot 4}] to Cancel");self thread DestroyOnCancel(instruct1,"jw");self thread DestroyOnCancel(cancel,"jw");self thread DestroyOnDeath(cancel);self thread DestroyOnDeath(instruct1);self thread endOnCancel("jw");self notifyOnPlayerCommand("SL","+actionslot 2");for(;Winky Winky{self waittill("SL");start=self GetOrigin();self iPrintLnBold("Start Position Saved.");instruct1 destroy();instruct2=self createFontString("hudbig",1);instruct2 setPoint("TOP");instruct2 setText("^2Press [{+actionslot 2}] to Finish Your "+type);self thread DestroyOnCancel(instruct2,"jw");self thread DestroyOnDeath(instruct2);self waittill("SL");end=self GetOrigin();self iPrintLnBold("End Position Saved.");instruct2 destroy();instruct3=self createFontString("hudbig",1);instruct3 setPoint("TOP");instruct3 setText("^2Press [{+actionslot 2}] to Build Your "+type);self thread DestroyOnCancel(instruct3,"jw");self thread DestroyOnDeath(instruct3);self waittill("SL");instruct3 destroy();cancel destroy();self iPrintLnBold("Building "+type+"......");wait 1;self iPrintLnBold("Building "+type+"......");wait 1;self iPrintLnBold("Building "+type+"......");[[function]](start,end);self iPrintLnBold(type+" Built.");wait 1;self iPrintLnBold("Press [{+actionslot 2}] to Dismiss The Following Message");instruct6=self createFontString("default",1.Cool Man (aka Tustin);instruct6 setPoint("BOTTOM","TOP",0,150);instruct6 setText("^2CODE: ^1"+functiontype+"("+start+","+end+");");self thread DestroyOnDeath(instruct6);instruct7=self createFontString("hudbig",1.2);instruct7 setPoint("TOP");instruct7 setText("^2Enter the Following Code In myBunker()");self thread DestroyOnDeath(instruct7);self waittill("SL");instruct6 destroy();instruct7 destroy();self notify("jw");}}

DestroyOnDeath(text){self waittill("death");text destroy();}DestroyOnCancel(text,not){self waittill(not);text destroy();}

endOnCancel(not,gun){self notifyOnPlayerCommand( "canc", "+actionslot 4" );for(;Winky Winky{self waittill("canc");self notify(not);gun delete();}}

CreateWalls(start,end){D=Distance((start[0],start[1],0),(end[0],end[1],0));H=Distance((0,0,start[2]),(0,0,end[2]));blocks=roundUp(D/55);height=roundUp(H/30);CX=end[0] - start[0];CY=end[1] - start[1];CZ=end[2] - start[2];XA =(CX/blocks);YA =(CY/blocks);ZA =(CZ/height);TXA =(XA/4);TYA =(YA/4);Temp=VectorToAngles(end - start);Angle =(0,Temp[1],90);for(h=0;h < height;h++){block=spawn("script_model",(start +(TXA,TYA,10)+((0,0,ZA)* h)));block setModel("com_plasticcase_friendly");block.angles=Angle;block Solid();block CloneBrushmodelToScriptmodel(level.airDropCrateCollision);wait 0.001;for(i=1;i < blocks;i++){block=spawn("script_model",(start +((XA,YA,0)* i)+(0,0,10)+((0,0,ZA)* h)));block setModel("com_plasticcase_friendly");block.angles=Angle;block Solid();block CloneBrushmodelToScriptmodel(level.airDropCrateCollision);wait 0.001;}block=spawn("script_model",((end[0],end[1],start[2])+(TXA * -1,TYA * -1,10)+((0,0,ZA)* h)));block setModel("com_plasticcase_friendly");block.angles=Angle;block Solid();block CloneBrushmodelToScriptmodel(level.airDropCrateCollision);wait 0.001;}}

roundUp( floatVal ) { if ( int( floatVal ) != floatVal ) return int( floatVal+1 ); else return int( floatVal ); }


You Sure?
You must login or register to view this content.

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo