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.

Tankchangers- without UFO or Boss

Modding questions, answers, help.....

Moderators: Warfare, Admin, Moderator

Post Reply
User avatar
LGM
Site Admin
Site Admin
Posts: 2100
Joined: Fri Dec 29, 2006 12:59 pm
Location: Very Northwest WA
Contact:

Tankchangers- without UFO or Boss

Post by LGM »

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.
THE V
Need Major Repair
Need Major Repair
Posts: 815
Joined: Fri Dec 29, 2006 4:03 pm
Location: Richland, WA
Contact:

Re: Tankchangers- without UFO or Boss

Post by THE V »

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.

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");
So it looks somethink like this

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");
Image
User avatar
LGM
Site Admin
Site Admin
Posts: 2100
Joined: Fri Dec 29, 2006 12:59 pm
Location: Very Northwest WA
Contact:

Re: Tankchangers- without UFO or Boss

Post by LGM »

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:

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");
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 :thumbup:
THE V
Need Major Repair
Need Major Repair
Posts: 815
Joined: Fri Dec 29, 2006 4:03 pm
Location: Richland, WA
Contact:

Re: Tankchangers- without UFO or Boss

Post by THE V »

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.
Image
ArtCrazy
Veteran Member
Veteran Member
Posts: 290
Joined: Fri Dec 29, 2006 10:14 am

Re: Tankchangers- without UFO or Boss

Post by ArtCrazy »

You could always get ACAS and configure the permissions so that normal users can't use the UFO/boss tankchangers... ;)
User avatar
LGM
Site Admin
Site Admin
Posts: 2100
Joined: Fri Dec 29, 2006 12:59 pm
Location: Very Northwest WA
Contact:

Re: Tankchangers- without UFO or Boss

Post by LGM »

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.
ArtCrazy
Veteran Member
Veteran Member
Posts: 290
Joined: Fri Dec 29, 2006 10:14 am

Re: Tankchangers- without UFO or Boss

Post by ArtCrazy »

LGM wrote:Hey ArtCrazy! Haven't seen you around in a while.
I check here for new posts regularly, but haven't posted for ages
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.
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.
User avatar
Dazzle
Evil Site Admin
Evil Site Admin
Posts: 1320
Joined: Fri Dec 29, 2006 6:59 am
Location: London, England
Contact:

Re: Tankchangers- without UFO or Boss

Post by Dazzle »

ACAS_CTF

Love it :thumbup:
Post Reply