Anonymous | Login | Signup for a new account | 2024-05-03 01:55 UTC |
My View | View Issues | Change Log | Roadmap | Zandronum Issue Support Ranking | Rules | My Account |
View Issue Details [ Jump to Notes ] | [ Issue History ] [ Print ] | ||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | ||||
0003556 | Zandronum | [All Projects] Suggestion | public | 2018-10-20 18:27 | 2024-04-07 21:55 | ||||
Reporter | Michaelis | ||||||||
Assigned To | Kaminsky | ||||||||
Priority | normal | Severity | feature | Reproducibility | N/A | ||||
Status | resolved | Resolution | fixed | ||||||
Platform | OS | OS Version | |||||||
Product Version | 3.1 | ||||||||
Target Version | 3.1 | Fixed in Version | 3.1 | ||||||
Summary | 0003556: Letting modders change player class without ConsoleCommand | ||||||||
Description | Part of phasing out the dangerous ConsoleCommand (https://zandronum.com/tracker/view.php?id=1070). It would be great to have SetPlayerClass(player, classname); to replace ConsoleCommand("playerclass nyx"). Primary use case is mods implementing their own class selection through ACS menu or "Choose Your Difficulty"-like galleries on maps, akin to Quake 1 intro. | ||||||||
Attached Files | |||||||||
Relationships | ||||||
|
Notes | |
(0020146) Michaelis (reporter) 2018-10-25 10:33 edited on: 2018-10-25 10:33 |
Also add boolean "respawn now?". Defaults to false. If it is false, then using SetPlayerClass is exactly equal to setting playerclass with console. If it is true, then player is killed and respawned as new class immediately. In a game mode with limited lives, e.g. Survival or LMS, life is not deducted. SetPlayerClass(int player, str classname[, bool respawnNow]); |
(0021342) JaxOf7 (reporter) 2020-05-22 23:47 |
To add onto this I've been using ConsoleCommand("Playerclass (class)") in some of my mods. Specifically, having a user variable for each team designating a class for each team so it automatically sets your class upon joining that team. (ex: Team0 Ghostbuster, Team1 Jitterskull) Thing is though, this kicks you for user info flood if you're not careful. Even kicks if you are careful. Would appreciate something that never kicks players. |
(0021628) Kaminsky (developer) 2021-07-23 20:46 |
3.1 adds the ACS function "SetPlayerClass" which allows modders to set a specifc class for a player, with the option of also forcing them to respawn right away. This function also takes into account if the player can use the given class, depending on whether or not it's available to their current team. |
(0023539) Ru5tK1ng (updater) 2024-04-07 21:55 |
Marking this as resolved since it does replace the use of console command. Any issues regarding the function have been reported. |
This issue is already marked as resolved. If you feel that is not the case, please reopen it and explain why. |
|
Supporters: | DrPyspy dbthanatos Ivan Mr. Satan JaxOf7 sonicfam1102 mifu |
Opponents: | No one explicitly opposes this issue yet. |
Issue History | |||
Date Modified | Username | Field | Change |
2018-10-20 18:27 | Michaelis | New Issue | |
2018-10-21 12:21 | Leonard | Relationship added | child of 0001070 |
2018-10-25 10:33 | Michaelis | Note Added: 0020146 | |
2018-10-25 10:33 | Michaelis | Note Edited: 0020146 | View Revisions |
2020-05-22 23:47 | JaxOf7 | Note Added: 0021342 | |
2021-07-23 20:46 | Kaminsky | Note Added: 0021628 | |
2021-07-23 20:46 | Kaminsky | Assigned To | => Kaminsky |
2021-07-23 20:46 | Kaminsky | Status | new => needs testing |
2024-04-07 21:55 | Ru5tK1ng | Note Added: 0023539 | |
2024-04-07 21:55 | Ru5tK1ng | Status | needs testing => resolved |
2024-04-07 21:55 | Ru5tK1ng | Resolution | open => fixed |
2024-04-07 21:55 | Ru5tK1ng | Product Version | => 3.1 |
2024-04-07 21:55 | Ru5tK1ng | Fixed in Version | => 3.1 |
2024-04-07 21:55 | Ru5tK1ng | Target Version | => 3.1 |
Copyright © 2000 - 2024 MantisBT Team |