Page 1 of 1

Keyconf, console commands/cheats in multiplayer

Posted: Fri May 30, 2014 4:18 am
by Galaxy_Stranger
It used to be that console commands were not allowed in multiplayer games so people couldn't cheat and ruin the game.

This article describes how creating new key commands basically runs cvars.

Is adding new key commands not possible in multiplayer? I'm specifically needing to set player keys to run scripts to give them inventory items. Will this work?

RE: Keyconf, console commands/cheats in multiplayer

Posted: Fri May 30, 2014 4:35 am
by Slim

Code: Select all

alias givestuff "give all;echo "Items received."

addkeysection "Section for Custom Commands"
addmenukey "Give All" givestuff
That should give you a general idea.

RE: Keyconf, console commands/cheats in multiplayer

Posted: Fri May 30, 2014 4:09 pm
by Galaxy_Stranger
Oh, I understand how to implement, my question is whether or not this won't work while hosting a multiplayer Zandronum server because trying to run cvars during a multiplayer game wouldn't work.

RE: Keyconf, console commands/cheats in multiplayer

Posted: Fri May 30, 2014 5:00 pm
by Qent
It will work, but not with the "give" command. Puke a NET script instead.

RE: Keyconf, console commands/cheats in multiplayer

Posted: Fri May 30, 2014 5:07 pm
by Galaxy_Stranger
Ok, cool. All I have to do is create NET scripts.

Thanks.