Keyconf, console commands/cheats in multiplayer

Discuss all aspects related to modding Zandronum here.
Post Reply
Galaxy_Stranger
 
Posts: 21
Joined: Fri Oct 19, 2012 7:05 pm
Contact:

Keyconf, console commands/cheats in multiplayer

#1

Post by Galaxy_Stranger » Fri May 30, 2014 4:18 am

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?

User avatar
Slim
Zandrone
Posts: 1112
Joined: Sat Mar 16, 2013 7:11 am
Location: Zero Space
Clan: Can't fit it in here
Clan Tag: -=FSR=-
Contact:

RE: Keyconf, console commands/cheats in multiplayer

#2

Post by Slim » Fri May 30, 2014 4:35 am

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.
Image

"Your childish antics grow tiring. If you dare to fight me, then I accept your challenge: Anytime, anywhere." - Zero, Megaman X5
Spoiler: Quotes (Open)
5:54 PM - Slim: you're complaining about something so small that
5:54 PM - Lance: so? we do that all the time
5:55 PM - Lance: we're a bunch of losers complaining at a bar minus the bar
Spoiler: Galactus tried evading (Open)
Image

Galaxy_Stranger
 
Posts: 21
Joined: Fri Oct 19, 2012 7:05 pm
Contact:

RE: Keyconf, console commands/cheats in multiplayer

#3

Post by Galaxy_Stranger » Fri May 30, 2014 4:09 pm

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.

Qent
Retired Staff / Community Team Member
Posts: 1424
Joined: Tue May 29, 2012 7:56 pm
Contact:

RE: Keyconf, console commands/cheats in multiplayer

#4

Post by Qent » Fri May 30, 2014 5:00 pm

It will work, but not with the "give" command. Puke a NET script instead.

Galaxy_Stranger
 
Posts: 21
Joined: Fri Oct 19, 2012 7:05 pm
Contact:

RE: Keyconf, console commands/cheats in multiplayer

#5

Post by Galaxy_Stranger » Fri May 30, 2014 5:07 pm

Ok, cool. All I have to do is create NET scripts.

Thanks.

Post Reply