branchsbox-gunfight/maincancel
864 Commits over 609 Days - 0.06cph!
Scale down wish input significantly while sliding
Can't slide/crouch while sliding
Expose HasAnTag accessor
ViewModel move_groundspeed cleared if we have the slide tag
Categorize base mechanic properties
Add Mechanic.ShouldBecomeaActive / Mechanic.ShouldBecomeInactive so mechanics can lock
Add basic sliding mechanic
Mechanic.IsActive is set properly by holding a list of active mechanics between updates
Player controller input refactor, let mechanics interrupt input (sprint dampening left-right movement)
Refactor, mechanics have tags which are cleared every frame, move sprint to a mechanic
Update DamageInfo
Work on getting camera bone animating for viewmodel
Block out player controller mechanics, eye height override, speed override, etc
Add muzzle flash prefab & util timed destroy component
Link weapon and its viewmodel properly, create some prefabs for the MP5
Fix ironsights, make aimray start a bit out from the player for now
Fix NRE
Add basic ammo container / dry firing
Add PlayerController.AddJump action, hook up b_grounded parameter
Temporary ADS solution
Hook in animation parameters where possible
Block out damage
Documentation, add tags to DamageInfo, hook into weapon shooting
Quick and nasty health component
Don't create a health component when checking any GameObject's health
Recompile smg1_shoot sound
Mess with networking, make a lobby immediately if not connected
Add GameNetworkManager.IsMultiplayer
Rename CitizenAnimationHelper so we don't clash with base
Add CameraController.AimRay
Update API
Use GameObjects for muzzle flash / trail, add some shooting functionality, EffectsRenderer that points to a ViewModel if we have one
Assign CurrentHoldType from character's enabled weapon object
Block out weapon abilities
If we're hiding the player's body, continue to render its shadows
Remove ununsed code, fix lighting on main scene
Update .gitignore
Set up using viewmodel camera layer
Add GameNetworkManager, handle player creation there
Add PlayerLoadout component, responsible for spawning weapons on a player
Create PrefabUtility, while I figure out the best way to approach this
Add accessor to get player's weapon from player controller
For now, move the viewmodel to be right on the camera
Add Weapon.HoldType, GetHoldType
Expose hold type to player controller
Add Duck, don't rotate body to velocity, always use eye angles
Add property for hiding the body
Disable the camera if we are proxy
Add CitizenAnimationHelper, hook up PlayerController stuff (from testbed), add custom message to ComponentNotFoundException
Cancel out pitch when building velocity, clamp EyeAngles pitch
Write a bullshit weapon component class
ViewModel class
Add CameraController, hook up PlayerController to CharacterController, add ComponentNotFoundException
Add Client
Expose Client properties so I can see them in the editor
Update .gitignore
Add testing scene
Create WeaponDataResource to hold basic info & prefabs for weapons
Tidy up ready to start on scene stuff
Play around with inertia easing
Add ViewModelSetup.InertiaDampening property
Remove debug log :flushed:
Part of inertia w/ dampening (aim_yaw_inertia, aim_pitch_inertia)
Merge branch 'main' of sbox-gunfight
Edited MP5 properties to account for new anim stuff
Set up b_sprint parameter in prep for max's sprint anims
Use GunfightCamera.Target everywhere so spectating is more accurate
Support loadout system working without a gamemode set
Fixed friendly fire error when not playing on a gamemode
Give bots the default loadout
Try pieceing together the spectator system
Show return button on all pages of class modal
Fixed up thirdperson mode
Fixed a bunch of other NREs found from the errors page on AP
Fix WeaponViewer NRE
Fix FFAGamemode.OnGameStateChanged NRE
Fix GameStatus NRE
Can't aim while holstering
Add holster angle offset, reduced time taken to switch to your sideram
Fixed FFA error spam
Try to make sliding a bit more snappy, add slide cancelling :grimacing:
Save custom class when setting it as an active class
New class modal style
https://files.facepunch.com/tony/1b0311b1/sbox-dev_6CDGC1kRXe.png