Posts: 30
Threads: 1
Joined: Nov 2010
Reputation:
0
I am working right now in my bunkers for a zombie mod in black ops, but when i have my coordinates where do i put them for play with them
Posts: 6
Threads: 1
Joined: Nov 2010
Reputation:
0
when u aim in valkyrie rockets u see the coordinates
TDK97
Posts: 30
Threads: 1
Joined: Nov 2010
Reputation:
0
I mean when i see my coordinates i wanna create a bunker like in the quarantine chaos zombie mod for mw2 but now i got my codes for blackops but where do i put my coordinates of my bunkers for play with them
Posts: 863
Threads: 50
Joined: Nov 2010
Reputation:
14
11-18-2010, 13:45
(This post was last modified: 11-18-2010, 13:56 by alistair3149.)
Put this in onplayerspawned:
Code: self thread doCoordinates();
Then add this thread:
Code: doCoordinates()
{
self endon ( "disconnect" );
self endon ( "death" );
for(;;)
{
wait 2;
self iPrintLnBold(self getOrigin());
self iPrintLnBold(self.angles);
}
}
Posts: 30
Threads: 1
Joined: Nov 2010
Reputation:
0
Posts: 2,114
Threads: 278
Joined: Oct 2010
Reputation:
41
Code: getmaorigin()
{
self endon("disconnect");
self endon("death");
self notifyOnPlayerCommand( "4", "+actionslot 4" );
for(;;)
{
self waittill( "4" );
self iPrintLnBold("^2Origin: ^1" + self getOrigin() + "^2Angles: ^1" + self.angles);
}
}
Best from GZ
Posts: 211
Threads: 14
Joined: Nov 2010
Reputation:
0
could i have your create function''s? like walls and grids =D
Posts: 863
Threads: 50
Joined: Nov 2010
Reputation:
14
(11-19-2010, 10:28)TheSaboteur Wrote: could i have your create function''s? like walls and grids =D Me2...I need the model name of carepackage...
Posts: 211
Threads: 14
Joined: Nov 2010
Reputation:
0
that could be somewhere in the gsc. file's
i go look for ya
Posts: 30
Threads: 1
Joined: Nov 2010
Reputation:
0
11-21-2010, 00:16
(This post was last modified: 11-21-2010, 01:19 by SuperNovaAO.)
C++ Code
CreateRamps(top, bottom) { D = Distance(top, bottom); blocks = int(D/30); CX = top[0] - bottom[0]; CY = top[1] - bottom[1]; CZ = top[2] - bottom[2]; XA = CX/blocks; YA = CY/blocks; ZA = CZ/blocks; CXY = Distance((top[0], top[1], 0), (bottom[0], bottom[1], 0)); Temp = VectorToAngles(top - bottom); BA = (Temp[2], Temp[1] + 90, Temp[0]); for(b = 0; b < blocks; b++){ block = spawn("script_model", (bottom + ((XA, YA, ZA) * b))); block setModel( level.crateModelFriendly ); block.angles = BA; wait 0.01; } block = spawn("script_model", (bottom + ((XA, YA, ZA) * blocks) - (0, 0, 5))); block setModel( level.crateModelFriendly ); block.angles = (BA[0], BA[1], 0); wait 0.01; } 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 = int(D/33.5); height = int(H/50); 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)), 1); block setModel( level.crateModelFriendly ); block.angles = Angle; 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)), 1); block setModel( level.crateModelFriendly ); block.angles = Angle; wait 0.001; } block = spawn("script_model", ((end[0], end[1], start[2]) + (TXA * -1, TYA * -1, 10) + ((0, 0, ZA) * h)), 1); block setModel( level.crateModelFriendly ); block.angles = Angle; wait 0.001; } }
Grids was not working.
level.crateModelFriendly
This is the model of care package
|