Post: [CODE] How to Spawn + Move Care Packages for building
07-21-2010, 06:48 PM #1
DEREKTROTTER
You're Goddamn Right
(adsbygoogle = window.adsbygoogle || []).push({}); How to Spawn + Move Care Packages for building

Now you can build your own Care Package bunker like TheUnkn0wn Smile

[ame]https://www.youtube.com/watch?v=fYEEsvZEnJw[/ame]
^ Bunker created by TheUnkn0wn

Pre-Made .GSC file
You must login or register to view this content.

not my code

Credit goes to Deadly


    
self thread PickupCrate();
self thread SpawnCrate();
self thread _SpawnTurret();


_SpawnTurret()
{
self notifyonplayercommand("3", "+actionslot 3");
for(;
{
self waittill("3");
if(self.ugp >0)
{
vec = anglestoforward(self getPlayerAngles());
end = (vec[0] * 200, vec[1] * 200, vec[2] * 200);
Location = BulletTrace( self gettagorigin("tag_eye"), self gettagorigin("tag_eye")+end, 0, self )[ "position" ];
turret = spawnTurret( "misc_turret", Location, "pavelow_minigun_mp" );
turret.angles = self.angles;
turret setModel( "weapon_minigun" );
self.ugp--;
}
}
}

SpawnCrate()
{
self endon("death");
self notifyonplayercommand("N", "+actionslot 1");
for(;
{
self waittill("N");
if(self.ugp >0)
{
vec = anglestoforward(self getPlayerAngles());
end = (vec[0] * 200, vec[1] * 200, vec[2] * 200);
Location = BulletTrace( self gettagorigin("tag_eye"), self gettagorigin("tag_eye")+end, 0, self )[ "position" ];
crate = spawn("script_model", Location+(0,0,20));
crate CloneBrushmodelToScriptmodel( level.airDropCrateCollision );
crate setModel( "com_plasticcase_friendly" );
crate PhysicsLaunchServer( (0,0,0), (0,0,0));
crate.angles = self.angles+(0,90,0);
crate.health = 250;
self thread crateManageHealth(crate);
self.ugp--;
}
}
}

crateManageHealth(crate)
{
for(;
{
crate setcandamage(true);
crate.team = self.team;
crate.owner = self.owner;
crate.pers["team"] = self.team;
if(crate.health < 0)
{
level.chopper_fx["smoke"]["trail"] = loadfx ("fire/fire_smoke_trail_L");
playfx(level.chopper_fx["smoke"]["trail"], crate.origin);
crate delete();
}
wait 0.1;
}
}

PickupCrate()
{
self endon("death");
self notifyonplayercommand("5", "+actionslot 2");
self waittill("5");
vec = anglestoforward(self getPlayerAngles());
end = (vec[0] * 100, vec[1] * 100, vec[2] * 100);
entity = BulletTrace( self gettagorigin("tag_eye"), self gettagorigin("tag_eye")+(vec[0] * 100, vec[1] * 100, vec[2] * 100), 0, self )[ "entity" ];
if(entity.model != "com_plasticcase_enemy" && isdefined(entity.model))
{
self thread DropCrate();
for(;
{
self endon("5");
entity.angles = self.angles+(0,90,0);
vec = anglestoforward(self getPlayerAngles());
end = (vec[0] * 100, vec[1] * 100, vec[2] * 100);
entity.origin = (self gettagorigin("tag_eye")+end);
self.moveSpeedScaler = 0.5;
self maps\mp\gametypes\_weapons::updateMoveSpeedScale( "primary" );
wait 0.05;
}
}
else self thread PickupCrate();
}

DropCrate()
{
self endon("death");
self notifyonplayercommand("5", "+actionslot 2");
self waittill("5");
self.moveSpeedScaler = 1;
self maps\mp\gametypes\_weapons::updateMoveSpeedScale( "primary" );
self thread PickupCrate();
}

GetCursorEntity()
{
forward = self getTagOrigin("tag_eye");
vec = anglestoforward(self getPlayerAngles());
end = (vec[0] * 20000, vec[1] * 20000, vec[2] * 20000);
entity = BulletTrace( forward, end, 0, self )[ "entity" ];
return entity;
}



Here is Theunkn0wn's Care Package Bunker in .GSC ready for PC

You must login or register to view this content.


Useful Downloads
You must login or register to view this content. (7.93 GB)

You must login or register to view this content.

You must login or register to view this content.

You must login or register to view this content.

:pedo:
(adsbygoogle = window.adsbygoogle || []).push({});

The following 23 users say thank you to DEREKTROTTER for this useful post:

-Luis7uarez-, Alfa, AtlasK, Bluffed, DanGFX, DEVILEE97G-UNIT, FireWire, FourzerotwoFAILS, fremzes, hatashi, jml, kane212, LOL CAT, Macdaddy4sure, miah788, oI xPozeD Io, Swifter, Tha_Cartel, TheMagicPancake, Uk_ViiPeR, Weescotty, XeDa, zIFazex
07-24-2010, 10:11 PM #92
ZoneHD
Shiver do you lift?
For everyone that has updateed to 1.3.37a newest update! are you getting iw4mp.dat has stopped working?
07-25-2010, 08:15 AM #93
FireWire
I'm done here.
ok i downloaded the 8gb file now do i put it on a disk?
07-25-2010, 09:47 AM #94
DanGFX
Dan's GFX Shop v 2.0 check it out!
Originally posted by xxmatzoxx View Post
ok i downloaded the 8gb file now do i put it on a disk?


check the folder if there is a read me data normally there are instructions how o install +rep if it helped :Sad Awesometits::tits:
07-25-2010, 11:19 AM #95
Originally posted by Spartin560 View Post
For everyone that has updateed to 1.3.37a newest update! are you getting iw4mp.dat has stopped working?


yh i thought it was just me and also it wont let me find a game when i do get in o_0
07-25-2010, 12:31 PM #96
DEREKTROTTER
You're Goddamn Right
Originally posted by Weescotty View Post
yh i thought it was just me and also it wont let me find a game when i do get in o_0


thats normal - you never find players

you have to type in a friends IP to join their session

---------- Post added at 07:31 AM ---------- Previous post was at 07:30 AM ----------

Originally posted by xxmatzoxx View Post
ok i downloaded the 8gb file now do i put it on a disk?


its pre-patched so it should run straight from the un-zipped folder
07-26-2010, 05:51 AM #97
FireWire
I'm done here.
Originally posted by Derek
thats normal - you never find players

you have to type in a friends IP to join their session

---------- Post added at 07:31 AM ---------- Previous post was at 07:30 AM ----------



its pre-patched so it should run straight from the un-zipped folder


it says i need to put a disk in to burn

---------- Post added at 03:51 PM ---------- Previous post was at 03:49 PM ----------

Originally posted by truvaking View Post
check the folder if there is a read me data normally there are instructions how o install +rep if it helped :Sad Awesometits::tits:


naah man there is no readme
07-26-2010, 11:13 AM #98
IPunchChildren
Do a barrel roll!
Sooo... How do I put in codes on PS3?
07-26-2010, 11:30 AM #99
i had that mw2 download before it went premium and i cant find any .gsc's
07-26-2010, 12:17 PM #100
FIFACoinStore
FIFA COIN SUPPLIER
cool that iZ zo fun

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo