Console output after using console commands

  • Please make sure you are familiar with the forum rules. You can find them here: https://forums.tripwireinteractive.com/index.php?threads/forum-rules.2334636/
  • Weve updated the Tripwire Privacy Notice under our Policies to be clearer about our use of customer information to come in line with the EU General Data Protection Regulation (GDPR) rules that come into force today (25th May 2018). The following are highlights of our changes:


    We've incorporated the relevant concepts from the GDPR including joining the EU and Swiss Privacy Shield framework. We've added explanations for why and how Tripwire processes customer data and the types of data that we process, as well as information about your data protection rights.



    For more information about our privacy practices, please review the new Privacy Policy found here: https://tripwireinteractive.com/#/privacy-notice

heller96

FNG / Fresh Meat
May 10, 2019
2
0
1
So I'm working on my custom version of Marco's Access Plus (creates new console commands to let admins control the game more). AccessPlus has a console command "admin help" which lists all the available commands for the user that entered the command. By default it uses the function ClientMessage(string) to display these commands in chat, which is nice. However after adding about 20-25 new commands, I need to scroll through chat to see all the available commands and it is becoming very annoying. I had the idea that maybe I could print all this information into the game's console, so I've been looking for a way to do this, since the game's console is so empty all the time, it's barely used for anything (sadly), so it'd be the perfect way to solve my issue. I found the function OutputText(MessageString) inside the class Console.uc, so I looked for ways to implement it into the code I already have.

This is what I have as of now:


Spoiler!


And this is how I tried to implement my function:

Spoiler!


Unfortunately it doesn't work. The compiler doesn't show any errors, but when I enter admin help ingame, nothing shows up in the console. My assumption is that LocalPlayer(Player) is not the person executing the console command, but I haven't found another way to make it work.

Maybe someone here on the forums could help me with this and point me in the right direction?
 

GearShift

FNG / Fresh Meat
Feb 21, 2019
19
4
3
You could maybe try getting the local player controller and extrapolating from there.