Skip to content

Commit

Permalink
Fixed parachutes not working on minigame 31
Browse files Browse the repository at this point in the history
  • Loading branch information
safalin1 committed Dec 11, 2023
1 parent 8030065 commit a848ffe
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/scripting/ConVars.sp
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ void PrepareConVars()

g_hConVarTFFastBuild.BoolValue = false;
g_hConVarTFWeaponSpreads.BoolValue = true;
g_hConVarTFParachuteToggle.BoolValue = true;
g_hConVarTFParachuteToggle.BoolValue = false;

g_hConVarServerGravity.IntValue = 800;
g_hConVarHostTimescale.FloatValue = 1.0;
Expand Down
3 changes: 2 additions & 1 deletion src/scripting/Events.sp
Original file line number Diff line number Diff line change
Expand Up @@ -574,7 +574,8 @@ public void TF2_OnConditionAdded(int client, TFCond condition)
TFCond_Bleeding,
TFCond_RuneHaste,
TFCond_CritCola,
TFCond_HalloweenCritCandy:
TFCond_HalloweenCritCandy,
TFCond_Parachute:
{
removeCondition = false;
}
Expand Down
7 changes: 3 additions & 4 deletions src/scripting/Minigames/Minigame31.sp
Original file line number Diff line number Diff line change
Expand Up @@ -48,20 +48,19 @@ public void Minigame31_OnMinigameSelected(int client)
player.SetGodMode(false);
player.SetHealth(10);
player.ResetWeapon(true);
player.GiveWeapon(1101);
player.SetCollisionsEnabled(true);
player.GiveWeapon(1101);

g_iMinigame31PlayerIndex++;

// Teleport center point is 5388 396 -180
float vel[3] = { 0.0, 0.0, 0.0 };
float vel[3] = { 0.0, 0.0, -400.0 };
int posa = 360 / g_iActiveParticipantCount * (g_iMinigame31PlayerIndex-1);
float pos[3];
float ang[3];

pos[0] = 5389.0 + (Cosine(DegToRad(float(posa)))*300.0);
pos[1] = 395.0 - (Sine(DegToRad(float(posa)))*300.0);
pos[2] = 2262.0;
pos[2] = 1650.0;

ang[0] = 0.0;
ang[1] = float(180-posa);
Expand Down

0 comments on commit a848ffe

Please sign in to comment.