
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 );
}
}
Copyright © 2026, NextGenUpdate.
All Rights Reserved.