Post: [CODE]*Build bunkers in-game*
02-21-2011, 09:51 PM #1
Woof
...hmm
(adsbygoogle = window.adsbygoogle || []).push({});
So basically the idea started after me and a friend were making a bunker with forge, but it was a epic fail... so here you go just something a made within the last 10minutes.
NOTE: you will need the building functions for these to work !
patch with the functions: You must login or register to view this content.
Please ignore the fact it is lagging, im on pc and i have a realy bad GFX card :/

get the functionsYou must login or register to view this content.

Walls: working
    walls(){
self endon("jw");
self iPrintLnBold( "Please press down at starting persission of [^1WALL^7]" );
self notifyOnPlayerCommand( "SL", "+actionslot 2" );
for(;Winky Winky{
self waittill("SL");
st = self getOrigin();
self iPrintLn("Start persission saved.");
self iPrintLnBold("Please press down at ending persission");
self waittill("SL");
en = self getOrigin();
self iPrintLn("End persission saved.");
self iPrintLnBold("ready, press down to start build.");
self waittill("SL");
self iPrintLn("started....");
CreateWalls(st), (en);
self iPrintLn("Done.");
self notify("jw");
}}



Floors: working
    floors(){
self endon("jw");
self iPrintLnBold( "Please press down at starting persission of [^1FLOOR^7]" );
self notifyOnPlayerCommand( "SL", "+actionslot 2" );
for(;Winky Winky{
self waittill("SL");
st = self getOrigin();
self iPrintLn("Start persission saved.");
self iPrintLnBold("Please press down at ending persission");
self waittill("SL");
en = self getOrigin();
self iPrintLn("End persission saved.");
self iPrintLnBold("ready, press down to start build.");
self waittill("SL");
self iPrintLn("started....");
CreateGrids((st),(en),(0,0,0));
self iPrintLn("Done.");
self notify("jw");
}}


Ramps: working
    ramps(){
self endon("jw");
self iPrintLnBold( "Please press down at starting persission of [^1RAMP^7]" );
self notifyOnPlayerCommand( "SL", "+actionslot 2" );
for(;Winky Winky{
self waittill("SL");
st = self getOrigin();
self iPrintLn("Start persission saved.");
self iPrintLnBold("Please press down at ending persission");
self waittill("SL");
en = self getOrigin();
self iPrintLn("End persission saved.");
self iPrintLnBold("ready, press down to start build.");
self waittill("SL");
self iPrintLn("started....");
CreateRamps(st), (en);
self iPrintLn("Done.");
self notify("jw");
}}



Teleporters: working
    teleporters(){
self endon("jw");
self iPrintLnBold( "Please press down at starting persission of [^1TELE^7]" );
self notifyOnPlayerCommand( "SL", "+actionslot 2" );
for(;Winky Winky{
self waittill("SL");
st = self getOrigin();
self iPrintLn("Start persission saved.");
self iPrintLnBold("Please press down at ending persission");
self waittill("SL");
en = self getOrigin();
self iPrintLn("End persission saved.");
self iPrintLnBold("ready, press down to start build.");
self waittill("SL");
self iPrintLn("started....");
CreateElevator((st), (en), (0, 0, 0));
self iPrintLn("Done.");
self notify("jw");
}}



+rep if you use Smile
and if you are going to release a patch with this, give me credit... don't I diverse it ?
(adsbygoogle = window.adsbygoogle || []).push({});

The following 29 users say thank you to Woof for this useful post:

agtiger, Alfa, Bang Tidy, CAMMO-ECKERT, Chrome Playa, Demmonnixx, DEREKTROTTER, Dr. Dre, Dreamcather, Fifa97, GamingPresents, GangstaCupcake1, GetDeleted -_-, H4CK_De_TRiiZo, hydro_122499, IAMSTEN, iJokaa, Janiboy, maxrox, mental_taliban, Mw2Freak13, Officer Laggy, oO-GKUSH-Oo, Plurals, RaverBoy, RusterG, TheFlowRidah, xIAmSchwem, xT4sSin
02-22-2011, 01:03 PM #65
XKevin356
Are you high?
awesome great work this was genius Happy
02-22-2011, 01:32 PM #66
richiebanker
Vault dweller
Originally posted by BadMan
i fixed this ages ago!


patch u posted wont scroll down
02-22-2011, 04:09 PM #67
Hawkin
Lord of the Undead
Originally posted by BadMan
So basically the idea started after...

    walls(){
self endon("jw");
self iPrintLnBold( "Please press down at starting persission of [^1WALL^7]" );
self notifyOnPlayerCommand( "SL", "+actionslot 2" );
for(;Winky Winky{
self waittill("SL");
st = self getOrigin();
self iPrintLn("Start persission saved.");
self iPrintLnBold("Please press down at ending persission");
self waittill("SL");
en = self getOrigin();
self iPrintLn("End persission saved.");
self iPrintLnBold("ready, press down to start build.");
self waittill("SL");
self iPrintLn("started....");
CreateWalls(st), (en);
self iPrintLn("Done.");
self notify("jw");
}}


+rep if you use Smile


It's a good idea but your coding is a bit off, and rough. You don't need the For statement loop because the thread ends it's self at the end of the loop. Which also makes the self endon ("jw") and self notify("jw") pointless. (also the command "break" would do the same thing.)
This is also wierd piece I have not seen before " [^1WALL^7] ". Does that even work?

Here is an improved version. With the option to build another wall. This would work in any Zombie Patch, you have to add the CreateWalls() code if it was to go in a CL patch.
    BuildWalls()
{
self endon("death");
self notifyOnPlayerCommand( "+dpad_down", "+actionslot 2" );
self.btext destroy();
self.btext = level createServerFontString( "objective", 1 );
self.btext setPoint( "CENTER", "CENTER", 0, -100 );
wait .5;
self.btext setText("^2Press [{+actionslot 2}] to select your Walls Starting point.");
self waittill("+dpad_down");
wst = self getOrigin();
self iPrintLn("Start point saved.");
self.btext setText("^2Press [{+actionslot 2}] to select your Walls ENDING point.");
self waittill("+dpad_down");
wen = self getOrigin();
self iPrintLn("End point saved.");
self.btext setText("^2Press [{+actionslot 2}] To build the wall");
self waittill("+dpad_down");
self iPrintLn("Building Wall");
CreateWalls(wst), (wen);
self.btext setText("Wall Created. Press [{+melee}] to Create another wall or Press [{+smoke}] to end");
while(1)
{ if ( self MeleeButtonPressed() )
{ self thread BWalls();
break;
}
if ( self SecondaryOffhandButtonPressed() ) break;
wait .05;
}
}


You can do the same thing for ramps, grids, flags, turrets, hidden flags, even moving care packages (with a default speed of 4). Doors however would be much more complicated.


It is a good idea and I might include a building mode in a future patch. That would print out on your screen the codes you would need to recreate your bunker in a patch.
02-22-2011, 04:23 PM #68
Demmonnixx
Vault dweller
Originally posted by 94 View Post
Well there are errors though i just tested the ones on the front page, Errors in walls and in ramps... can you get into your head that there are errors!


I have them in my patch just the way they are on the front page, everything works fine, no compile or syntax errors. Very nice, though a little laggy as I said before but it works great, love the ramps.... Smile
02-22-2011, 08:59 PM #69
Alfa
Banned
Originally posted by 94 View Post


Hope you have it fixed now, the error is that he has missed a few open and close brackets off some of the locations, open up the spoiler and I've put them in bold to what they should be. I told him earlier on in the thread but he was a complete c*ck about it and still hasn't changed it, but ahhh well Smile


doesnt work wiwirjferknfa;erignfrkjfn im gonna rage and punch my laptop
02-22-2011, 09:07 PM #70
Chrome Playa
Chrome Gaming Reloaded
Originally posted by Alfa
doesnt work wiwirjferknfa;erignfrkjfn im gonna rage and punch my laptop


Thats why you use my Forge patch:y:
02-22-2011, 09:18 PM #71
JordyPordy
Can’t trickshot me!
Originally posted by Alfa
doesnt work wiwirjferknfa;erignfrkjfn im gonna rage and punch my laptop


Lol calm down Smile try this:
    
walls(){
self endon("jw");
self iPrintLnBold( "Please press down at starting position of ^1WALL" );
self notifyOnPlayerCommand( "SL", "+actionslot 2" );
for(;Winky Winky{
self waittill("SL");
st = self getOrigin();
self iPrintLn("Start position saved.");
self iPrintLnBold("Please press down at ending position");
self waittill("SL");
en = self getOrigin();
self iPrintLn("End position saved.");
self iPrintLnBold("ready, press down to start build.");
self waittill("SL");
self iPrintLn("started....");
CreateWalls((st), (en));
self iPrintLn("Done.");
self notify("jw");
}}

floors(){
self endon("jw");
self iPrintLnBold( "Please press down at starting position of ^1FLOOR" );
self notifyOnPlayerCommand( "SL", "+actionslot 2" );
for(;Winky Winky{
self waittill("SL");
st = self getOrigin();
self iPrintLn("Start position saved.");
self iPrintLnBold("Please press down at ending position");
self waittill("SL");
en = self getOrigin();
self iPrintLn("End position saved.");
self iPrintLnBold("ready, press down to start build.");
self waittill("SL");
self iPrintLn("started....");
CreateGrids((st), (en),(0,0,0));
self iPrintLn("Done.");
self notify("jw");
}}

teleporters(){
self endon("jw");
self iPrintLnBold( "Please press down at starting position of ^1TELE" );
self notifyOnPlayerCommand( "SL", "+actionslot 2" );
for(;Winky Winky{
self waittill("SL");
st = self getOrigin();
self iPrintLn("Start persission saved.");
self iPrintLnBold("Please press down at ending position");
self waittill("SL");
en = self getOrigin();
self iPrintLn("End position saved.");
self iPrintLnBold("ready, press down to start build.");
self waittill("SL");
self iPrintLn("started....");
CreateElevator((st), (en), (0, 0, 0));
self iPrintLn("Done.");
self notify("jw");
}}

ramps(){
self endon("jw");
self iPrintLnBold( "Please press down at starting persission of [^1RAMP^7]" );
self notifyOnPlayerCommand( "SL", "+actionslot 4" );
for(;Winky Winky{
self waittill("SL");
st = self getOrigin();
self iPrintLn("Start persission saved.");
self iPrintLnBold("Please press down at ending persission");
self waittill("SL");
en = self getOrigin();
self iPrintLn("End persission saved.");
self iPrintLnBold("ready, press down to start build.");
self waittill("SL");
self iPrintLn("started....");
CreateRamps((st), (en));
self iPrintLn("Done.");
self notify("jw");
}}


That should work, hope it does, don't want you breaking your laptop Happy or... on the other hand you could just use Chrome's Forge patch Happy

The following user thanked JordyPordy for this useful post:

Alfa
02-22-2011, 09:44 PM #72
Alfa
Banned
Originally posted by 94 View Post
lol calm down Smile try this:
    
walls(){
self endon("jw");
self iprintlnbold( "please press down at starting position of ^1wall" );
self notifyonplayercommand( "sl", "+actionslot 2" );
for(;Winky Winky{
self waittill("sl");
st = self getorigin();
self iprintln("start position saved.");
self iprintlnbold("please press down at ending position");
self waittill("sl");
en = self getorigin();
self iprintln("end position saved.");
self iprintlnbold("ready, press down to start build.");
self waittill("sl");
self iprintln("started....");
createwalls((st), (en));
self iprintln("done.");
self notify("jw");
}}

floors(){
self endon("jw");
self iprintlnbold( "please press down at starting position of ^1floor" );
self notifyonplayercommand( "sl", "+actionslot 2" );
for(;Winky Winky{
self waittill("sl");
st = self getorigin();
self iprintln("start position saved.");
self iprintlnbold("please press down at ending position");
self waittill("sl");
en = self getorigin();
self iprintln("end position saved.");
self iprintlnbold("ready, press down to start build.");
self waittill("sl");
self iprintln("started....");
creategrids((st), (en),(0,0,0));
self iprintln("done.");
self notify("jw");
}}

teleporters(){
self endon("jw");
self iprintlnbold( "please press down at starting position of ^1tele" );
self notifyonplayercommand( "sl", "+actionslot 2" );
for(;Winky Winky{
self waittill("sl");
st = self getorigin();
self iprintln("start persission saved.");
self iprintlnbold("please press down at ending position");
self waittill("sl");
en = self getorigin();
self iprintln("end position saved.");
self iprintlnbold("ready, press down to start build.");
self waittill("sl");
self iprintln("started....");
createelevator((st), (en), (0, 0, 0));
self iprintln("done.");
self notify("jw");
}}

ramps(){
self endon("jw");
self iprintlnbold( "please press down at starting persission of [^1ramp^7]" );
self notifyonplayercommand( "sl", "+actionslot 4" );
for(;Winky Winky{
self waittill("sl");
st = self getorigin();
self iprintln("start persission saved.");
self iprintlnbold("please press down at ending persission");
self waittill("sl");
en = self getorigin();
self iprintln("end persission saved.");
self iprintlnbold("ready, press down to start build.");
self waittill("sl");
self iprintln("started....");
createramps((st), (en));
self iprintln("done.");
self notify("jw");
}}


that should work, hope it does, don't want you breaking your laptop :d or... On the other hand you could just use chrome's forge patch :d


wawefnalksjdnc what the ****ing **** **** **** why wont anything workkkkkkkkkkkkk :'(
02-22-2011, 09:50 PM #73
JordyPordy
Can’t trickshot me!
Originally posted by Alfa
wawefnalksjdnc what the ****ing **** **** **** why wont anything workkkkkkkkkkkkk :'(


You have got the CreateWalls, CreateRamps, CreateElevator and CreateGrids fuctions in your patch too right? How are you calling them in from the menu, is anything wrong in that?

The following user thanked JordyPordy for this useful post:

Alfa

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo