branchSandboxGame/mastercancel
2,064 Commits over 944 Days - 0.09cph!
Add shotgun
Transfer player velocity to weapon throw
Add fov command (110 fov club)
Fix post process entities for 4.19, hardcode outline material blendable for now. Add outline when looking at weapon pickups.
Use pickup mesh bounds to place weapon center
Pick up weapon with use key for when not touching pickup trigger
Add entry state name to anim state machine, use the first added state by default (fixes view models showing idle for a frame when equipping sometimes)
Only play weapon view model animation when weapon is active
Add weapon switching and weapon selection Hud. Add give_weapon command. Add Entity.ClassName. Weapon world and view models hidden by default. Run character controllable physics on server when no player or player is a bot.
Add left and right hand socket names to player model. Add Weapon.HideModel and Weapon.AttachToPlayerModel (probably come up with better names)
Broadcast weapon drops so the model can be hidden and detached
Create player model before giving weapons. Attach weapon world model to player model
Hide weapon models on holster. Only give weapon if it's unique
Place weapon instead of throwing it if surface is flat and near us
Throw weapon with some angular velocity
Only play weapon viewmodel sounds if there's an owner
Set weapons owner to null on drop
Remove weapon from inventory when dropping weapon
Have weapon create it's own pickup
Throw weapon with some velocity
Disable replication on weapon model. Only trigger weapon pickup on server
Add view shake to shooter base
Allow weapons to update owners view (zoom in and out)
Add weapon model entity (weapons world model, client side only)
Add virtual OnEquip and OnHolster to BaseWeapon, called on weapon change
Play view model animation on equip by default, override Weapon.OnEquip to do something different
Add WeaponPickup
Give weapon to pickup trigger activator, destroy pickup if activator can put the weapon in their inventory
Add thirdperson camera collision back
Merge branch 'master' of github.com:Facepunch/SandboxGame
Move Gamemode.FindSpawnPoint to Engine addon, no reason to make this an internal function
Turn off skeletal animations properly without T-posing it when in ragdoll
Only rotate player model with yaw angle when controllable is alive
Fix exception in vpk reading
Keep reading bsp entity lump if a line fails
Remove some uneeded logging
View next player if target leaves
Add some authority asserts for safety
Don't change spectator mode if there's no target. Move spectator to thirdperson camera when switching to null target (no targets left to spectate)
Allow spectator movement if there's no target
Only use thirdperson camera as spectator if in that mode or target is ragdoll
Set spectator view target when target respawns
Merge
Merge branch 'master' of github.com:Facepunch/SandboxGame
Fix weapon viewmodel swinging around when first spectating
Don't do spectator eye input when in firstperson mode
Only do spectator movement when in free mode
Set spectator view target back to itself unless switching to firstperson mode and there's a target, just incase there's a situation where mode is changed from firstperson to free.
Add spectator free mode back, move it to where the thirdperson camera would be so it looks like we just detach from the target nice and clean
Rename ControllingViewTarget to ControllingTarget to distinguish between the actual view target, target is just a way of player having an entity of interest (example: don't remove ragdoll while player is targeting it)
Simplify player spectating by only setting view target server side for firstperson, calculate thirdperson camera client side in OnUpdateView
Remove client side thirdperson camera in DeathControllable, calculate view in OnUpdateView instead
Player.ViewTarget requires authority
Add Player.ControllingViewTarget, override Controllable.GetViewTarget to use it. (This is useful for getting a target entity from local player)
Fix Player.Controllable to work both server and client side
Spectators target player model if it's in ragdoll mode, switch back when player respawns.
Add World.ServerNetworkAddress
Safer ragdoll cleanup without using async, only destroy after not being viewed for ragdoll_fade_time
Merge branch 'master' of github.com:Facepunch/SandboxGame
Merge branch 'master' of github.com:Facepunch/SandboxGame
Add Player.ServerIPAddress
Cleanup engine base gamemode, only has the bare essentials
Add authority only Controllable.SetPositionAndViewAngles to simplfy respawning. Control angles now use angles instead of quaternions.
Fix eye roll on remote clients. Punch view on pistol fire animation so remote clients can see it.
Switch to spectator free mode on movement input
Add entity EyeYaw and EyePitch (EyeRotation.Yaw could be invalid when going from angles to quaternion)
Allow player spectate if both viewer and target is on same team (target can't be a spectator) for situations where you want to spectate your team while dead
Spectators can cycle through players in reverse
Add view punch and eye roll to shooter base (can be disabled with convars)
Broadcast pistol bullet fire to everyone else
Fix player movement colliding with player model. Add Crosshair