MantisBT - Zandronum
View Issue Details
0001378Zandronum[All Projects] Suggestionpublic2013-06-24 14:552018-09-30 21:36
Balrog 
Torr Samaho 
highfeatureN/A
closedfixed 
1.2 
1.31.3 
0001378: sv_forcerandom: Force the use of a random player class
Since there's apparently a demand for it, why not add a CVAR to force the use of a random player class regardless of user settings.
This is currently only possible by changing the user's settings with ConsoleCommand.
No tags attached.
child of 0001070new Dusk Phasing out the dangerous ConsoleCommand for various additional/improved ACS commands 
Issue History
2013-06-24 14:55BalrogNew Issue
2013-06-24 19:41DuskRelationship addedrelated to 0001070
2013-06-24 19:42DuskRelationship deletedrelated to 0001070
2013-06-24 19:42DuskRelationship addedchild of 0001070
2014-04-20 19:51FritsNote Added: 0008621
2014-04-21 12:05HypnotoadNote Added: 0008624
2014-04-27 19:01Torr SamahoStatusnew => acknowledged
2014-05-01 15:45Torr SamahoNote Added: 0008660
2014-05-01 15:45Torr SamahoAssigned To => Torr Samaho
2014-05-01 15:45Torr SamahoStatusacknowledged => needs testing
2014-05-01 16:23Torr SamahoNote Edited: 0008660bug_revision_view_page.php?bugnote_id=8660#r4690
2014-05-01 16:36Torr SamahoNote Edited: 0008660bug_revision_view_page.php?bugnote_id=8660#r4691
2014-05-01 17:21Torr SamahoNote Edited: 0008660bug_revision_view_page.php?bugnote_id=8660#r4692
2014-05-01 20:57FritsNote Added: 0008664
2014-05-02 15:27ZzZomboNote Added: 0008669
2014-05-02 17:53Torr SamahoNote Added: 0008670
2014-05-03 08:47Torr SamahoNote Added: 0008677
2014-05-03 08:49Torr SamahoProduct Version => 1.2
2014-05-03 08:49Torr SamahoTarget Version => 1.3
2014-06-04 20:20ArcoNote Added: 0008847
2014-06-04 20:20ArcoStatusneeds testing => resolved
2014-06-04 20:20ArcoFixed in Version => 1.3
2014-06-04 20:20ArcoResolutionopen => fixed
2014-06-04 22:28ArcoStatusresolved => feedback
2014-06-04 22:28ArcoResolutionfixed => reopened
2014-06-04 22:28ArcoStatusfeedback => resolved
2014-06-04 22:28ArcoResolutionreopened => fixed
2018-09-30 21:36Blzut3Statusresolved => closed

Notes
(0008621)
Frits   
2014-04-20 19:51   
I could really use this function for the zandronum version of prophunt.
Some classes like health vials are more op than for example a big tree.

Hypnotoad implemented a hacky way via acs that uses console command but it's crude and causes kicks.
?
Can this be a thing for 2.0/1.3?
(0008624)
Hypnotoad   
2014-04-21 12:05   
Indeed, such a feature would be extremely useful for us. Prop hunt is much more fun when you're forced into a random class.
(0008660)
Torr Samaho   
2014-05-01 15:45   
(edited on: 2014-05-01 17:21)
I had a brief look at this and implemented the cvar with pretty much no testing. Please test if this build works as expected.

EDIT: I noticed that there is a serious problem with this build: sv_forcerandom may not be true while a map is loaded. I'll look into this.

EDIT3: This should work better.

(0008664)
Frits   
2014-05-01 20:57   
Works fine on my end :)
(0008669)
ZzZombo   
2014-05-02 15:27   
What about generalizing stuff? Add instead sv_forceclass "<class name>", and "random" for random class unless there is a class defined and named that way?
(0008670)
Torr Samaho   
2014-05-02 17:53   
I don't see any reasonable use for sv_forceclass "<class name>" (except if the class name is random). If you want every single player on every team to use the very same class, you probably shouldn't be running a mod that offers different classes.
(0008677)
Torr Samaho   
2014-05-03 08:47   
I added sv_forcerandom to 1.3, but begin to think we should rename it to make its purpose more clear, e.g. sv_forcerandomclass.
(0008847)
Arco   
2014-06-04 20:20   
Works as intended in v1.3 r140413-2324M.