zakarybk / crosshair_designer

https://steamcommunity.com/sharedfiles/filedetails/?id=590788321
1 stars 0 forks source link

TTT_Spectator_Deathmatch Ghost SWEP support #1

Closed zakarybk closed 1 year ago

zakarybk commented 4 years ago

The addon in question - https://github.com/Tommy228/TTT_Spectator_Deathmatch

Where it draws the crosshair - https://github.com/Tommy228/TTT_Spectator_Deathmatch/blob/master/lua/weapons/weapon_ghost_base.lua#L153

How it handles ADS - https://github.com/Tommy228/TTT_Spectator_Deathmatch/blob/master/lua/weapons/weapon_ghost_base.lua#L370

Should be simple enough other than hiding their crosshair.

zakarybk commented 4 years ago

Untested ^

The current implementation isn't amazing in terms of performance since it'll be trying to read a network var every frame even if it doesn't exist.

zakarybk commented 4 years ago

Branch default-cross includes these changes now + an untested performance improvement for it. (no longer checking every frame, only when they switch weapons, to test if they're a ghost or not since they are given a ghost specific weapon)

zakarybk commented 3 years ago

Labelled with won't fix because it's one small addon I've only seen one person use.