branchrust_reboot/main/rc_dronecancel
92 Commits over 151 Days - 0.03cph!
Change PTZ zoom to cycle through presets like binoculars
Adjust zoom speed to change much slower
Adjust pitch/yaw clamps for PTZ camera
Update crosshair color to be more visible
Fix client/server compile
Drone and PTZ Cam techtree setup
Actually put the Z in the PTZ camera
PTZ icon
Moved PTZ to electrical category
PTZ Base crafting pass
Increased PTZ max place distance
PTZ craftable and researchable
Moved Drone to vehicle world layer
Drones can no longer be placed underwater
Drones can no longer be deployed at silly angles
Fixed deployment on certain layers
Added prevent building volume
Fixed rotation angles
WIP PTZ camera deployable
Add crosshair texture from lewis
Drone no longer hidden
Drone craftable and researchable,
Drone unlocked by default (for now)
Drone crafting cost (subject to change)
Workbench level 2
Merge from PTZSecurityCamera
Shoot from the camera pos when manually controlling an autoturret
Add a placeholder crosshair to the computer station for autoturret aiming
Fix manual controlled autoturret shooting at a future aim pos (server was lerping faster than client)
Allow deploying drone in places where building isn't allowed cause it's just a drone
Fix fog not resetting immediately when exiting the computer station
Significantly reduce the movement leaning for deployed drone
Make drone deployable lose control when colliding with players
Make drone deployable lose control temporarily when getting damaged sometimes
Remove protection from drone deployable
Enable fog when RC controlling an autoturret to show their range
Scale up the autoturret's laser dot while RC controlling so it can be used as a crosshair
Refactor a bit so multiple people can connect to RC entities at the same time
Only one player will receive control over RC entities which can be controlled though
Computer station UI will show if you are in 'viewing only' mode when someone else has control
Fix compile errors in different build modes
Remove IRemoteControllable.Occupied
Pass the playerID to IRemoteControllable.StopControl so entities can know who stopped accessing it
Make sure the CCTV resyncs its angles on the client to match the server in case they somehow desync
Client predicted pan/tilt for CCTV cameras from computer station
Calculate and use delta time between server ticks for autoturret lerping (because it uses invokes instead of update)
Add RealTimeSinceEx for similar functionality with extended precision
Remove external viewer flag logic from CCTV (unused)
Only allow changing an autoturret's RC identifier if the other settings can be changed too
Clamp aim direction when controlling an autoturret
Add client predicted aiming for RC controlled autoturret
Set up RC logic on autoturret
Make use of IRemoteControllable.Occupied to only allow one player to control drones/autoturrets at a time
Refactor computer station so bookmarks only remember the camera identifiers (no more entity IDs)
Fixes drone bookmarks not working after picking up and redeploying it
IRemoteControllable changes to use playerID instead of BasePlayer instances
Implement CanControl on Drone so only one player can control it at a time
Only allow picking up when not flying
Pick up will save the RC ID in the item, deploy will restore it
Spin the propellers when flying
Cherry pick
76944 - fix drone pitch not changing eye transform on server
Support pitching the camera up/down on the RC drone
Allow changing the RC ID for drones
More audio fixes when flying the drone from the computer station