branchsbox-gunfight/maincancel
893 Commits over 639 Days - 0.06cph!
Fixed Laser dot not showing
Fixed strange behavior with laser sight transforms
Added AimAttachmentStyle, first draft for overriding ADS with a laser sight
https://files.facepunch.com/devultj/1b2411b1/sbox-dev_OI67deE338.mp4
Change laser direction if sprinting / sliding
Add WeaponAttachment.Mirror( VIewModel )
Fixed players not running FrameSimulate on ActiveChild
Use attachment rotation if reloading
Set up laser particles on laser sight
Weapon.FrameSimulate correclty runs FrameSimulateAttachments
Inform ViewModel when attachments are added/removed
Temporary asset for Laser Sight, attachments can override ViewModel aim transform
Started API for Weapon Attachments
Added holster anims to all guns
Updated MP5 anim graph to support holstering
Fixed NRE with CoverAimMechanic.DoVisualEffects
Yet some more crosshair editing
Added WallInfo.AbsoluteHeight, fixed Vaulting
Show WallHeight traces if BasePlayerController.Debug is on
Increased recoil scale penalty for firing while moving
ApproximateWallHeight will only iterate up to 20 times. Before it would be iterating hundreds, if the wall was massive.
ApproximateWallHeight will correctly calculate the height of a wall, relative to the player's location
Mantle: Duck the player if wall height is low enough
Moved Player weapon code into its own partial class
Added CanChangeWeapon, queue weapon switches
Fixed revolver animgraph holster anim
Update state order and removed debug print
Add fallback pickup label hint, no more `[E] object`
Changing weapon isn't immediate, added holster state to animgraph
Removed auto weapon switch when empty
R870: reload time decreased by more than half
Fast firing penalty for the Revolver
https://files.facepunch.com/devultj/1b2211b1/sbox-dev_5pOf2NFcw9.mp4
Updated Revolver to include spread
Added weapon accumulated spread. Shown visibly on the ViewModel
Project backwards with penetration, so bullet holes are on both sides of a wall https://files.facepunch.com/devultj/1b1811b1/sbox-dev_XH4xFVufKB.mp4
Ricochet impacts & trails https://files.facepunch.com/devultj/1b1811b1/sbox-dev_tbJXwJSPxP.mp4
Adjusted viewmodel weights for all weapons
Removed strange sprint walkbob offset, updated revolver walk bob
CapturePoint responds to player deaths
Decreased ping lifetime if not enemy / resource
Fixed enemy ping persisting across lives
Give crosshair a dot
Fixed pickup triggers accepting traces while actively held by a player
Add PingSystem.GetLifetime, use that for deferred ping cleanup
Remove ping if ping's tagged entity has a parent now
Can ping weapons, triggers call to parent for pings
Add simple pinging system, needs sounds
Cleaned up unused VaultMoveMechanic code
Pass current bullet count into DoTracer, originate from muzzle if first bullet pass
Merge branch 'main' of sbox-gunfight
Remove MeleeWeapon. Got plans for this in the future.
Give ViewModel a flat FOV, for users who play at ridiculous FOV
Try to handle aim vs non-aim viewmodel states better.. this is all a big mess
Delete all loose weapons on the ground when map gets cleaned up
Mess with tickrate some more
Added WeaponDefinition.FindFromSlot, WeaponDefinition.Random( list )
Instead of hardcoded randomizer, use new methods to randomize loadout outside of Gunfight mode