yavl / teeworlds-infclassR

Slightly modified version of official InfClass
Other
10 stars 4 forks source link

Suggestion: Tarzan-mode for humans or bats or both #78

Closed yavl closed 5 years ago

yavl commented 5 years ago

A more natural and less clunky taxi mode. Let hook-protected humans infinitely hook non hook-protected humans without affecting them.

Example for humans: 16 players on the server, spacious map (normandie, damascus, newdust) is being played, Mercenary is not hook-protected and 3 other tees are hook protected. Those 3 tees hook mercenary and then mercenary starts flying with a tail of 3 tees.

Example for bats: Bat-only feature for quick infected forces' transportation on large maps. Same behaviour, unlimited number of zombies hook Bat and fly with him. If zombs won't stop holding hook button, Bat could throw down zombies at any time by enabling hook protection.

At a distance smaller than minimum, hook should behave like spider's hook on web mode.

teoman002 commented 5 years ago

Tarzan mode for humans, outline:

  1. condition: driver is not hook protected
  2. condition: guests are hook protected
  3. condition: driver is hooked
  4. behaviour: enable spider mode for guest, hook has a maximal length, if hook get's too long, the distance between driver and guests is held constant, guests position changes accordingly.
  5. exit condition: driver is hook protected or driver died or guest died
  6. behaviour: disable spider mode from guest, remove hook if hook exists
teoman002 commented 5 years ago

@yavl can you help me with the coding of 1 2 3 5 ? I do 4) 6)

teoman002 commented 5 years ago

look in character.cpp line 1933 player.cpp line 208

yavl commented 5 years ago

@teoman002 yeah, but i don't know how to deal with client hook predictions, disabling it for Bats when hooked by zombies but not humans

teoman002 commented 5 years ago

Why do you need to disable client hook predictions?

if GetPlayer->IsZombie() {DisablePredictions} if GetPlayer->IsHuman() continue;