Originally posted by DEREKTROTTER
if you have some good forge code ready ill add it
I posted one a bunch of pages back I'll post one again im on my iPod right now need to start up my computer
---------- Post added at 12:23 PM ---------- Previous post was at 12:18 PM ----------
ok here is the forge i use its right on dpad to move care packages you need both threads for it to work and if you change what its binded to make sure you change it on both threads because on your v7 forge something was left on up. its from ModsBABY's Forge Patch.
just make the menu function go to PickupCrate you probley know that but just thought i would say just incase. you dont really need that r2 and left to drop care packages thats just a pointless code when you can shoot them and spawn them in the objects menu.
PickupCrate()
{
self endon("death");
self notifyOnPlayerCommand( "dpad_right", "+actionslot 4" );
for(;

{
self waittill( "dpad_right" );
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( isdefined(entity.model) ){
self thread moveCrate( entity );
self waittill( "dpad_right" );{
self.moveSpeedScaler = 1;
self maps\mp\gametypes\_weapons::updateMoveSpeedScale( "primary" );
}
}
}
}
moveCrate( entity )
{
self endon("dpad_right");
for(;

{
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;
}}