mirror of
https://github.com/shavitush/bhoptimer.git
synced 2025-12-07 18:38:26 +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;
|
||||
|
||||
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:
|
||||
@ -2170,20 +2170,12 @@ public Action Command_Beamer(int client, int args)
|
||||
TE_SendToClient(client, delay);
|
||||
delay += 0.11;
|
||||
|
||||
if (!i) break;
|
||||
if (!C) break;
|
||||
|
||||
SubtractVectors(endpos, startpos, direction);
|
||||
NormalizeVector(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;
|
||||
|
||||
float hitnormal[3];
|
||||
|
||||
Loading…
Reference in New Issue
Block a user