Thread
:
Change the laser beam of tripmine (Half-Life)
View Single Post
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
08-06-2013 , 12:34 Re: Change the laser beam of tripmine (Half-Life)
#
18
You don't have to anglevector and such.
m_end is calculated at the end of Spawn().
You have just to do : m_vecEnd = pev->origin + m_vecDir * 2048;
m_vecDir is gpGlobals->v_forward.
Just use :
new Float:dir[3];
global_get( glb_v_forward, dir );
vecEnd[0] = origin[0] + dir [0] * 4000.0
vecEnd[1] = origin[1] + dir [1] * 4000.0
vecEnd[2] = origin[2] + dir [2] * 4000.0
Make sure to hook as POST.
__________________
Last edited by Arkshine; 08-06-2013 at
12:40
.
Arkshine
View Public Profile
Send a private message to Arkshine
Find More Posts by Arkshine