Tactical Shooter Weapon
This component implements weapon-related functions, such as reloading, firing, inspecting, mag checking, etc.:- Tac Weapon Settings: Animation settings for this weapon (Animation Settings).
- Aim Point: Aim point transform.
- Fire Mode: Initial fire mode state.
- Is Suppressed: Whether the weapon is suppressed.
- Is Attachment Deployed: Whether the attachment for this gun is deployed or not.
-
Bones To Hide: A list of bone transforms that will be hidden/unhidden when
SetBoneHidden(int hidden)animation event is triggered.
How initialization works
All weapons are initialized when the game starts, using theInitialize method:
It re-trieves references to weapon-related components (Animators, RecoilAnimation, Camera, etc.) and samples a base idle clip to compute the rigth-hand default pose, which is used for quickly drawing a siderarm.
