File tree Expand file tree Collapse file tree 2 files changed +2
-7
lines changed Expand file tree Collapse file tree 2 files changed +2
-7
lines changed Original file line number Diff line number Diff line change 1
- #include std\player;
2
- #include std\math;
3
-
4
1
bunnyhop()
5
2
{
6
3
self thread bunnyhop_brutzel();
@@ -76,7 +73,7 @@ bunnyhop_brutzel()
76
73
//smax = getcvarint("jump_height");
77
74
smax = 20 ;
78
75
a = getcvarint(" g_gravity" );
79
- vzero = std\math:: sqrt(smax * a * 2 );
76
+ vzero = sqrt(smax * a * 2 );
80
77
81
78
for (;;)
82
79
{
@@ -103,7 +100,7 @@ bunnyhop_brutzel()
103
100
if (PlayerSpeed < 300 )
104
101
{
105
102
PlayerSpeed = 300 ;
106
- PlayerVel = vectorScale(vectorNormalize(PlayerVel), PlayerSpeed);
103
+ PlayerVel = std\math:: vectorScale(vectorNormalize(PlayerVel), PlayerSpeed);
107
104
}
108
105
//iprintlnbold(PlayerSpeed);
109
106
Original file line number Diff line number Diff line change 1
- #include std\player;
2
-
3
1
/*
4
2
TODO
5
3
- player just jumps-off sometimes in some unexpected direction
You can’t perform that action at this time.
0 commit comments