ksamavati / tf2WatchMod

A Workshop mod for Overwatch 2 with the goal of recreating the weapons and abilities of the classes in Team Fortress 2 as accurately as possible.
0 stars 0 forks source link

[McCree] Player invisibility/cloak issues #6

Open ksamavati opened 10 months ago

ksamavati commented 10 months ago

Verify the logic for when the player's model appears and disappears is sound.

ksamavati commented 10 months ago

On disguse:

If cloaked,
  wait (during wait, play sound audible to player only)
  destroy any old disguisebot
  spawn new disguisebot
  set disguisebot invisible
  set player movespeed to match disguisebot
Else // If not cloaked
  Play animation visible to all for X seconds
  Play sound audible to player only for X seconds
  Wait X seconds
  destroy any old disguisebot
  spawn new disguisebot
  set player movespeed to match disguisebot
  If ThirdPerson
    Set third person camera
  End If

On cloak

If Cloaked == false
  If ThirdPerson
    Set ThirdPersonCamera
  End If
  Start player flicker
  Play sound for X seconds
  Wait X seconds
  Set player invisible