spitice / CSSharpMapChooser

CounterStrikeSharp implementation of Map Chooser
MIT License
0 stars 0 forks source link

RTV status is not reset when map timer is expired #8

Closed spitice closed 1 week ago

spitice commented 1 week ago

Everytime the server changes the map, RTV status should be cleared.

Environment

Steps to reproduce

PREREQUISITES:

You need to increase RTV vote threshold CVar so your vote won't initiate RTV immediately.

cssmc_rtv_vote_threshold 2  // Default: 0.7

Steps:

Expected result

✅ You should see the following message:

<your name> wants to Rock The Vote! message in chat. (1 voted, 2 required)

Actual result

❌ The following message is shown and the map voting starts, which means your RTV vote is not reset by map change.

<your name> wants to Rock The Vote! message in chat. (2 voted, 2 required)

Or you may see the following message in case your CSPlayerController instance is not changed during the map change.

You have already voted to RTV the map!