Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Radar move from shop UI #1624

Draft
wants to merge 7 commits into
base: master
Choose a base branch
from
Draft

Radar move from shop UI #1624

wants to merge 7 commits into from

Conversation

ZenBre4ker
Copy link
Contributor

This moves the radar item to a SWEP and therefore eliminates the use of the equipment tab to manually trigger the radar.

Also I cleaned up the weird RADAR class and put it into a library. It now handles only the Target rendering of the Radar and of corpses, bombs and dna samples.

In this draft missing are sounds. Also the current weapon mesh is the radio, I thought to put it in another holding position to distinguish it a bit from the radio.

@ZenBre4ker ZenBre4ker added the type/rework Big changes or overhaul of an existing feature label Sep 22, 2024
@ZenBre4ker ZenBre4ker self-assigned this Sep 22, 2024
Copy link
Member

@TimGoll TimGoll left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I just looked at the first file so far. One thing I wondered: Some roles were able to modify their radar time (in code) - is this still working after that change?

SWEP.Secondary.Delay = 1.0

SWEP.Kind = WEAPON_EQUIP2
SWEP.CanBuy = { ROLE_TRAITOR, ROLE_DETECTIVE } -- only traitors can buy
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
SWEP.CanBuy = { ROLE_TRAITOR, ROLE_DETECTIVE } -- only traitors can buy
SWEP.CanBuy = { ROLE_TRAITOR, ROLE_DETECTIVE }

SWEP.Kind = WEAPON_EQUIP2
SWEP.CanBuy = { ROLE_TRAITOR, ROLE_DETECTIVE } -- only traitors can buy
SWEP.LimitedStock = true -- only buyable once
SWEP.WeaponID = EQUIP_RADAR or 2
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think this is needed anymore

@ZenBre4ker
Copy link
Contributor Author

No, I removed that part. Seemed kinda silly. But that was at a point where I tried to unpack the radar library, so I could probably easily bring it back.

Also the radar can now be dropped/conquered, so the balance of that item has changed.

@TimGoll
Copy link
Member

TimGoll commented Sep 22, 2024

No, I removed that part. Seemed kinda silly. But that was at a point where I tried to unpack the radar library, so I could probably easily bring it back.

I already removed that from the marker, the necro and supervillain, because they "misused" the radar for other things, such as corpses, crystals etc.

I'm not sure if any third party addons still use this, probably not I'd guess?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/rework Big changes or overhaul of an existing feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants