Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions cfg/tf2ware_ultimate/minigames.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ extinguish
flipper_ball
flood
floppy
force_jump
ghost
goomba
grapple_cutout
Expand Down
24 changes: 24 additions & 0 deletions materials/hud/tf2ware_ultimate/minigames/force_jump.vmt
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
UnlitGeneric
{
$basetexture hud/tf2ware_ultimate/minigames/force_jump
$basetexturetransform "center .5 .2 scale 1.5 14.0 rotate 0 translate 0 0"

$translucent 1
$frame 0
$world_mins "[0.0 0.0 0.0]"
$world_maxs "[0.0 0.0 0.0]"
$zero 0.0
Proxies
{
WorldDims
{
}
Clamp
{
srcVar1 $zero
min "$world_mins[0]"
max "$world_mins[0]"
resultVar $frame
}
}
}
Binary file not shown.
1 change: 1 addition & 0 deletions scripts/vscripts/tf2ware_ultimate/default/minigames.nut
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ extinguish
flipper_ball
flood
floppy
force_jump
ghost
goomba
grapple_cutout
Expand Down
41 changes: 41 additions & 0 deletions scripts/vscripts/tf2ware_ultimate/minigames/force_jump.nut
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
minigame <- Ware_MinigameData
({
name = "Force Jump"
author = ["Kimmy", "ficool2"]
description = "Time your force jump!"
duration = 5.0
music = "falling"
start_pass = true
fail_on_death = true
thirdperson = true
start_freeze = 0.5
convars =
{
sv_gravity = RemapValClamped(Ware_TimeScale, 1.0, 2.0, 800.0, 270.0)
}
})

function OnStart()
{
Ware_SetGlobalLoadout(TF_CLASS_SCOUT, "Force-a-Nature", {"no double jump": 1})

foreach (player in Ware_MinigamePlayers)
{
player.SetHealth(1)

local weapon = player.GetActiveWeapon()
if (weapon == null)
continue

weapon.SetClip1(1)
Ware_SetPlayerAmmo(player, TF_AMMO_PRIMARY, 0)
}
}

function OnTeleport(players)
{
Ware_TeleportPlayersCircle(players, Ware_MinigameLocation.center + Vector(0, 0, 2400), 250.0)

if (Ware_MinigameLocation.name.find("big") != null)
Ware_TeleportPlayersCircle(players, Ware_MinigameLocation.center + Vector(0, 0, 2400), 550.0)
}