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:
Last edited by DEREKTROTTER ; 08-04-2010 at 07:48 PM.

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-23-2010, 05:18 PM #47
DEREKTROTTER
You're Goddamn Right
Originally posted by truvaking View Post
i builded a castle in the sky on rust xD rendering the video atm Happy i will post link soon


after a while my care packages go invisible - it happens after i've spawned a lot

is this a RAM problem - out of memory?

like on this vid:

[ame=https://www.youtube.com/watch?v=aOiFpyj2S7Q]YouTube - MW2 - Projectile fun on Afghan[/ame]
07-23-2010, 05:31 PM #48
Pr3ttyroyswag
Bounty hunter
Cand Find _rank.gsc no where n my game files HELP?
07-23-2010, 05:37 PM #49
DEREKTROTTER
You're Goddamn Right
Originally posted by Daroyp View Post
Cand Find _rank.gsc no where n my game files HELP?


use my premade patch

_rank.gsc is in there

The following user thanked DEREKTROTTER for this useful post:

Pr3ttyroyswag
07-23-2010, 06:01 PM #50
Slur
~nice guys finish last
Originally posted by Derek
Look here - You must login or register to view this content.

I'd be careful though if you are playing through steam - risk of getting banned.

I suggest downloading AlterIWnet for testing hacks

---------- Post added at 03:55 PM ---------- Previous post was at 02:30 PM ----------

FFS :(

i built an epic bunker on wasteland (better than Theunkn0wns Winky Winky ), loaded up FRAPS to record it

then ERROR - out of memory

FML


LOL. But +rep for this, good find!
07-23-2010, 06:30 PM #51
It's like a cod version of littlebigplanet. Upside Down Happy
07-23-2010, 07:03 PM #52
DanGFX
Dan's GFX Shop v 2.0 check it out!
Originally posted by Derek
after a while my care packages go invisible - it happens after i've spawned a lot

is this a RAM problem - out of memory?

like on this vid:

You must login or register to view this content.


cold be because u spawn a lot Happy i used like 700 care packages and none of this get invinsible
07-23-2010, 07:14 PM #53
Default Avatar
Brad
Guest
hey m8 i am going to try that!!

i might need ur help though :/
07-23-2010, 07:17 PM #54
DEREKTROTTER
You're Goddamn Right
Originally posted by ngu
hey m8 i am going to try that!!

i might need ur help though :/


sure, no probs

happy to help with teamviewer if you get stuck
07-23-2010, 07:21 PM #55
Default Avatar
Brad
Guest
Originally posted by Derek
sure, no probs

happy to help with teamviewer if you get stuck


would you be able to log on team viewer and sign in on mega upload and start the downloadfrom my pc ?

on sunday tho.

Copyright © 2024, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo