Post: Shoot Solid carepackages
07-28-2011, 03:23 AM #1
(adsbygoogle = window.adsbygoogle || []).push({}); Well I'm not too sure if this has been posted before or not, so if it has pm me and I'll have this thread close

//add this to init()
precacheModel( "com_plasticcase_beige_big" );

//and this would be how to put it as an option in a mod menu..


ShootBox()
{
if(self.box == true)
{
self iPrintln("Shooting Boxes OFF");
self notify("stop_box");
self.box = false;
}
else
{
self iPrintln("Shooting Boxes ON");
self thread doHq();
self.box = true;
}
}
doHq()
{
self endon("stop_box");
for(;Winky Winky
{
self waittill ( "weapon_fired" );
forward = self getTagOrigin("j_head");
end = self thread vector_Scal(anglestoforward(self getPlayerAngles()),1000000);
location = BulletTrace( forward, end, 0, self )[ "position" ];
model = spawn("script_model", location);
model.angles = (0, 90, 0);
model setModel( "com_plasticcase_beige_big" );
level.solid = spawn( "trigger_radius", ( 0, 0, 0 ), 0, 65, 30 );
level.solid.origin = location;
level.solid.angles = (0, 90, 0);
level.solid setContents( 1 );
}
}


//Note too all, do not shoot too many or the game will lagg out, or make your connection a living hell
(adsbygoogle = window.adsbygoogle || []).push({});

The following user thanked emmanuel_1985 for this useful post:

Diddles2Fresshh
08-02-2011, 05:56 PM #11
Originally posted by EddieMeduza View Post
Put In
     Next Time... Like This
[Code]
ShootBox()
{
if(self.box == true)
{
self iPrintln("Shooting Boxes OFF");
self notify("stop_box");
self.box = false;
}
else
{
self iPrintln("Shooting Boxes ON");
self thread doHq();
self.box = true;
}
}
doHq()
{
self endon("stop_box");
for(;
{
self waittill ( "weapon_fired" );
forward = self getTagOrigin("j_head");
end = self thread vector_Scal(anglestoforward(self getPlayerAngles()),1000000);
location = BulletTrace( forward, end, 0, self )[ "position" ];
model = spawn("script_model", location);
model.angles = (0, 90, 0);
model setModel( "com_plasticcase_beige_big" );
level.solid = spawn( "trigger_radius", ( 0, 0, 0 ), 0, 65, 30 );
level.solid.origin = location;
level.solid.angles = (0, 90, 0);
level.solid setContents( 1 );
}
}


sorry bro i like my way better, it looks ugly but it saves space

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo