I was hoping I could make tankchangers available, but not UFOs or Boss tanks. I think it would be a good thing in KeepAway to make it fair to the demos...
Anyone know how to do that? I didn't see an obvious way to do that.
DAZZLE'S UPGRADE PACK
If you haven't already done so, upgrade your game by downloading Dazzle's all-in-one upgrade pack. It comes with everything you need for today's servers. Does your blue bar freeze when joining servers? Do you lag in games? Do you get an annoying siren in Phobik's Servers? This is what you need. CLICK HERE TO DOWNLOAD.
If you haven't already done so, upgrade your game by downloading Dazzle's all-in-one upgrade pack. It comes with everything you need for today's servers. Does your blue bar freeze when joining servers? Do you lag in games? Do you get an annoying siren in Phobik's Servers? This is what you need. CLICK HERE TO DOWNLOAD.
Tankchangers- without UFO or Boss
Moderators: Warfare, Moderator, Admin
- LGM
- Site Admin
- Posts: 2100
- Joined: Fri Dec 29, 2006 12:59 pm
- Location: Very Northwest WA
- Contact:
-
- Need Major Repair
- Posts: 815
- Joined: Fri Dec 29, 2006 4:03 pm
- Location: Richland, WA
- Contact:
Re: Tankchangers- without UFO or Boss
I'm no expert but I think if you go to
\game\server\dash\codes.cs and delete off the calls in this section it may work.
So it looks somethink like this
\game\server\dash\codes.cs and delete off the calls in this section it may work.
Code: Select all
else if (%code $= "/ufo" )
call("tankchanger",%sender,"babyboss");
else if (%code $= "/light" )
call("tankchanger",%sender,"LightTank");
else if (%code $= "/med" )
call("tankchanger",%sender,"MediumTank");
else if (%code $= "/heavy" )
call("tankchanger",%sender,"HeavyTank");
else if (%code $= "/boss" )
call("tankchanger",%sender,"BossTank");
Code: Select all
else if (%code $= "/light" )
call("tankchanger",%sender,"LightTank");
else if (%code $= "/med" )
call("tankchanger",%sender,"MediumTank");
else if (%code $= "/heavy" )
call("tankchanger",%sender,"HeavyTank");
- LGM
- Site Admin
- Posts: 2100
- Joined: Fri Dec 29, 2006 12:59 pm
- Location: Very Northwest WA
- Contact:
Re: Tankchangers- without UFO or Boss
Thanks, V
I scrolled right through that part of the codes multiple times...
If any others want to try this, here's what I did to my codes:
I like to leave notes about my changes in case I want to undo them...
So, now the tankchangers work for light, med, and heavy, but not ufo or boss
I scrolled right through that part of the codes multiple times...
If any others want to try this, here's what I did to my codes:
Code: Select all
/////////////remove // to reactivate ufo changer code/////////
// else if (%code $= "/ufo" )
// call("tankchanger",%sender,"babyboss");
else if (%code $= "/light" )
call("tankchanger",%sender,"LightTank");
else if (%code $= "/med" )
call("tankchanger",%sender,"MediumTank");
else if (%code $= "/heavy" )
call("tankchanger",%sender,"HeavyTank");
/////////////remove // to reactivate boss changer code/////////
// else if (%code $= "/boss" )
// call("tankchanger",%sender,"BossTank");
So, now the tankchangers work for light, med, and heavy, but not ufo or boss
-
- Need Major Repair
- Posts: 815
- Joined: Fri Dec 29, 2006 4:03 pm
- Location: Richland, WA
- Contact:
Re: Tankchangers- without UFO or Boss
I always make a copy of the file and rename it with something like "codesOriginal.cs". This way I can rename the file with the changes when I don't want them any more and not have to remember how exactly I did it.
Glad my guess worked LGM.
Glad my guess worked LGM.
-
- Veteran Member
- Posts: 290
- Joined: Fri Dec 29, 2006 10:14 am
Re: Tankchangers- without UFO or Boss
You could always get ACAS and configure the permissions so that normal users can't use the UFO/boss tankchangers... ;)
- LGM
- Site Admin
- Posts: 2100
- Joined: Fri Dec 29, 2006 12:59 pm
- Location: Very Northwest WA
- Contact:
Re: Tankchangers- without UFO or Boss
Hey ArtCrazy! Haven't seen you around in a while.
I've considered trying ACAS (ArtCrazy's Admin Script) but just haven't taken the plunge. I should set up a copy and see how I like it.
I've considered trying ACAS (ArtCrazy's Admin Script) but just haven't taken the plunge. I should set up a copy and see how I like it.
-
- Veteran Member
- Posts: 290
- Joined: Fri Dec 29, 2006 10:14 am
Re: Tankchangers- without UFO or Boss
I check here for new posts regularly, but haven't posted for agesLGM wrote:Hey ArtCrazy! Haven't seen you around in a while.
It's got some cool features. In your case you can set permissions for non-admins/admins so that they only can use certain codes without actually having to edit the source code. ACAS_CTF has some even cooler features (like GUI-based /listban and /unban, the code shortcuts were modified so that they are the same as dash's a.s. and couple other things), yet I haven't felt like porting these changes over. They just give too much work and I haven't felt like using my free time on TT for some time.LGM wrote:I've considered trying ACAS (ArtCrazy's Admin Script) but just haven't taken the plunge. I should set up a copy and see how I like it.
- Dazzle
- Evil Site Admin
- Posts: 1320
- Joined: Fri Dec 29, 2006 6:59 am
- Location: London, England
- Contact:
Re: Tankchangers- without UFO or Boss
ACAS_CTF
Love it
Love it