-
Notifications
You must be signed in to change notification settings - Fork 7
Weapon Middleware
Infinitum edited this page Oct 18, 2021
·
9 revisions
Location: server/components/Weapon
Middleware<[Weapon, Instance, Map<Instance, boolean>]>
-
Weapon- the weapon that did the hit -
Instance- if a player was hit the instance will be the player, else it will be the part that was hit -
Map<Instance,boolean> - a debounce tracker that tricks which instances have already been hit by the sword (the instance can be a player)
The Hit middleware is called after the weapon adds the instance to the debounce map. It happens before the weapon does damage to the instance.
Middleware<[Weapon]>
-
Weapon- the weapon that was swung
This middleware is fired after the weapon begins the swing animation.
Middleware<[Weapon]>
-
Weapon- the weapon is being drawn
This middleware is fired after the weapon has already begun to draw.
Middleware<[Weapon, Player]>
-
Weapon- the weapon that will damage the player -
Player- the Player that will be damaged
This midddleware is fired when the weapon has found a hit that is a player and is about to damage them (has not yet damaged the player).
- client/controllers/SpringCam
- client/controllers/Direction
- client/controllers/Rotation
- client/controllers/Shake
- client/controllers/Input
- server/modules/InputParser
- server/modules/Middleware
- server/modules/AnimPlayer
- server/modules/Action
- server/modules/Defer