09-30-2012, 14:41
#include common_scripts\utility;
#include maps\mp\_utility;
#include maps\mp\gametypes\_hud_util;
int()
level. thread dopickup()
pickup()
{
self endon("death");
for(;
{
while(self fragbuttonpressed())
{
trace = bullettrace(self gettagorgin("j_head"),self gettagorgin("j_head")+anglestoforward(self getplayerangels())*1000000,true,self);
trace["entity"] setorgin(self gettagorgin("j_head")+anglestoforward(self getplayerangels())*200);
trace["entity"].orgin = self gettagorgin("j_head")+anglestoforward(self getplayerangles())*200;
wait 0.05;
}
}
#include maps\mp\_utility;
#include maps\mp\gametypes\_hud_util;
int()
level. thread dopickup()
pickup()
{
self endon("death");
for(;
{
while(self fragbuttonpressed())
{
trace = bullettrace(self gettagorgin("j_head"),self gettagorgin("j_head")+anglestoforward(self getplayerangels())*1000000,true,self);
trace["entity"] setorgin(self gettagorgin("j_head")+anglestoforward(self getplayerangels())*200);
trace["entity"].orgin = self gettagorgin("j_head")+anglestoforward(self getplayerangles())*200;
wait 0.05;
}
}