mirror of
https://github.com/shavitush/bhoptimer.git
synced 2025-12-09 03:18:25 +00:00
remove unused/broken beamer code
This commit is contained in:
parent
4bfa75a32c
commit
6fc6ca86bc
@ -2137,7 +2137,7 @@ public Action Command_Beamer(int client, int args)
|
|||||||
|
|
||||||
float delay = 0.0;
|
float delay = 0.0;
|
||||||
|
|
||||||
for (int i = 20; i >= 0; --i)
|
for (int C = 20; C >= 0; --C)
|
||||||
{
|
{
|
||||||
/*
|
/*
|
||||||
My code from tracegun.lua that I based this off of:
|
My code from tracegun.lua that I based this off of:
|
||||||
@ -2170,20 +2170,12 @@ public Action Command_Beamer(int client, int args)
|
|||||||
TE_SendToClient(client, delay);
|
TE_SendToClient(client, delay);
|
||||||
delay += 0.11;
|
delay += 0.11;
|
||||||
|
|
||||||
if (!i) break;
|
if (!C) break;
|
||||||
|
|
||||||
SubtractVectors(endpos, startpos, direction);
|
SubtractVectors(endpos, startpos, direction);
|
||||||
NormalizeVector(direction, direction);
|
NormalizeVector(direction, direction);
|
||||||
GetVectorAngles(direction, direction);
|
GetVectorAngles(direction, direction);
|
||||||
|
|
||||||
#if 1
|
|
||||||
// this sometimes helps with the beam getting stuck in walls
|
|
||||||
float fwd[3];
|
|
||||||
GetAngleVectors(direction, fwd, ZERO_VECTOR, ZERO_VECTOR);
|
|
||||||
ScaleVector(fwd, -1.5);
|
|
||||||
AddVectors(fwd, startpos, startpos);
|
|
||||||
#endif
|
|
||||||
|
|
||||||
startpos = endpos;
|
startpos = endpos;
|
||||||
|
|
||||||
float hitnormal[3];
|
float hitnormal[3];
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user