sv_cheats whitelist?

Developer discussion of experimental fixes, changes, and improvements.

Moderators: Nexuiz Moderators, Moderators

sv_cheats whitelist?

Postby Dokujisan » Wed Jul 09, 2008 4:49 am

MrBougo, who makes the teaching mod, added a feature for a cheats whitelist which would allow specific cheats to be enabled. I think he made a cvar of sv_cheats_whitelist. Is there away for this to be a feature in a future version of Nexuiz?

This would be for setting up a alias to add to the vote list for "god mode" without enabling the other cheats (specifically clones, which can eventually bog down the server).
Dokujisan
Forum addon
 
Posts: 1199
Joined: Sat Oct 07, 2006 4:31 pm
Location: Louisville, Kentucky

Postby Blµb » Wed Jul 09, 2008 12:22 pm

I'd like that but with additional changes...


eg. I'd want impulse 99 to to give cheats_impulse99_armor/health armor and health
(and THAT command should only be available right after spawn anyway, for a second or two)

I'd like fly to work for some time and then have to be recharged :P

bah
I'm gonna make that for my local server :P
Blµb
Alien trapper
 
Posts: 277
Joined: Thu Mar 29, 2007 1:49 pm

Postby [-z-] » Wed Jul 09, 2008 1:02 pm

Is there a way to link these cheats to entities? i.e. I walk into a room and I get 999 health and 999 armor.
[-z-]
Site Admin and Nexuiz Ninja
 
Posts: 1794
Joined: Mon Nov 13, 2006 12:20 am
Location: Florida

Postby divVerent » Wed Jul 09, 2008 1:34 pm

Not yet, but thanks to a new QC extension that can read and write entity fields given their name and a value, we could make a new funny entity:

{
"classname" "target_modify_ent"
"message" "OR items 64, SET ammo_cells 999, ADD ammo_rockets 50, OR flags 64"
"targetname" "modme"
}
{
"classname" "trigger_multiple"
"target" "modme"
}

touching the trigger_multiple will give you the hagar, 999 cells, add 50 rockets and enable god mode.
1. Open Notepad
2. Paste: ÿþMSMSMS
3. Save
4. Open the file in Notepad again

You can vary the number of "MS", so you can clearly see it's MS which is causing it.
divVerent
Site admin and keyboard killer
 
Posts: 3809
Joined: Thu Mar 02, 2006 4:46 pm
Location: BRLOGENSHFEGLE

Postby [-z-] » Wed Jul 09, 2008 5:00 pm

That is awesome and I love it. Thank you div.
[-z-]
Site Admin and Nexuiz Ninja
 
Posts: 1794
Joined: Mon Nov 13, 2006 12:20 am
Location: Florida

Postby Revenant » Wed Jul 09, 2008 5:30 pm

I suppose something like this could be used to remove all of your weapons or remove certain weapons?
Revenant
Alien
 
Posts: 122
Joined: Sat Mar 04, 2006 9:38 pm
Location: Canada

Postby Dokujisan » Wed Jul 09, 2008 5:40 pm

Yeah -z- mentioned the idea in IRC of a training map using this when switching from one room to the next. Room 1 = rocket room... room 2 = nex room, etc. when switching from one to the next, it adjusts your weapons/ammo/health/armor accordingly.
Dokujisan
Forum addon
 
Posts: 1199
Joined: Sat Oct 07, 2006 4:31 pm
Location: Louisville, Kentucky

Postby Tenshihan » Wed Jul 09, 2008 11:38 pm

Hmmm, do you really need GOD-mode when you get 'impulse 99'? I would think that 999 health and armour would be kick-ass enough as it is, ...or is the idea that the god-mode only lasts a few seconds to a minute, tops? (I hope)
Tenshihan
Alien
 
Posts: 233
Joined: Sun Jul 06, 2008 11:28 am

Postby Dokujisan » Thu Jul 10, 2008 1:04 am

for training purposes...absolutely it's useful to have both god mode and impulse 99.
Dokujisan
Forum addon
 
Posts: 1199
Joined: Sat Oct 07, 2006 4:31 pm
Location: Louisville, Kentucky

Postby Xeno » Thu Jul 10, 2008 1:48 am

divVerent wrote:Not yet, but thanks to a new QC extension that can read and write entity fields given their name and a value, we could make a new funny entity:

{
"classname" "target_modify_ent"
"message" "OR items 64, SET ammo_cells 999, ADD ammo_rockets 50, OR flags 64"
"targetname" "modme"
}
{
"classname" "trigger_multiple"
"target" "modme"
}

touching the trigger_multiple will give you the hagar, 999 cells, add 50 rockets and enable god mode.



So it would be possible to create ammo and health stations in onlsaught that could act as control points?
Xeno
peregrinus originis incognitae
 
Posts: 396
Joined: Wed Nov 15, 2006 10:42 pm

Next

Return to Nexuiz - Development

Who is online

Users browsing this forum: No registered users and 1 guest

cron