1. Hey Guest, is it this your first time on the forums?

    Visit the Beginner's Box

    Introduce yourself, read some of the ins and outs of the community, access to useful links and information.

    Dismiss Notice

How to change team for items in test mode?

Discussion in 'Modding [KAG]' started by king-george, Aug 31, 2013.

  1. king-george

    king-george Haxor Staff Alumni Tester

    Messages:
    284
    Is there a way of changing a team of an item in test mode?
     
  2. Digger101

    Digger101 Shark Slayer

    Messages:
    353
    No I dont think so, you just have to just switch teams weather it is command switching or manual switching.
     
  3. king-george

    king-george Haxor Staff Alumni Tester

    Messages:
    284
    how did they then change sedgwick(the necromancer) to purple team
     
    Froghead48 likes this.
  4. Asu

    Asu THD Team THD Team Forum Moderator

    Messages:
    1,580
    You could mod the chatcommand.as to do it, but I don't have time to do it yet. Dunno if it is possible, but should be.
     
  5. king-george

    king-george Haxor Staff Alumni Tester

    Messages:
    284
    ok, where is the place where it says what team the objekt will be when you spawn it?
     
  6. Tsilliev

    Tsilliev Haxor

    Messages:
    414
    A question can you turn sv_test 1 or 0 in game in the server?
     
  7. Asu

    Asu THD Team THD Team Forum Moderator

    Messages:
    1,580
    In console, you must login into RCON: /rcon /login [password] unless you don't have the seclev. Then, do /rcon /sv_test 1 and you're done.
     
    Tsilliev likes this.
  8. Tsilliev

    Tsilliev Haxor

    Messages:
    414
    Thanks I will test it.
    --- Double Post Merged, Sep 10, 2013, Original Post Date: Sep 10, 2013 ---
    I tried and no luck I open the console with home button and then I type /rcon /login pass and it says I am already logged in, then I type /rcon /sv_test 0 then I type !bomb at normal chat and I spawn a bomb so test is still 1, i tried in console /sv_test 0 but still the same.
     
  9. Sirpixelot

    Sirpixelot Base Burner
    1. Aphelion's Roleplay

    Messages:
    776
    No no no no, you're doing it wrong. It's /rcon /sv_test 1
    If it's at 0 then it's off. If at 1 then its on
     
  10. Tsilliev

    Tsilliev Haxor

    Messages:
    414
    I put it at 0 and then see if its off by typing !bomb but its not off, nice signiture btw :D
    --- Double Post Merged, Sep 11, 2013, Original Post Date: Sep 11, 2013 ---
    Another question I type /rcon /sv_test 0 and then I type /rcon /sv_test and it says that sv_test is 0 but I can still use commands, is it that I can use commands because I am admin, but others wont because they are not?
    --- Double Post Merged, Sep 11, 2013 ---
    Actually now that I check my autoconfig, the test is 0, and I could still type commands, so I guess its because I am admin that I can use !commands even if its 0.
     
  11. Sirpixelot

    Sirpixelot Base Burner
    1. Aphelion's Roleplay

    Messages:
    776
    Thanks :D

    Is this in single player? Cause if it is.. then yea. o-o
     
  12. Tsilliev

    Tsilliev Haxor

    Messages:
    414
    On my server but I am alone.
     
  13. king-george

    king-george Haxor Staff Alumni Tester

    Messages:
    284
    Ok, guys, your getting out of the meaning of this thread...
     
  14. Metaphoenix

    Metaphoenix Shark Slayer

    Messages:
    46
    The straight answer is No. You cannot change the team of the items you spawned in chat.
    The reason they are able to spawn a purple necro is due to the map settings they have in Basepngloader.as
    Code:
            else if (pixel == color_necromancer)
            {
                spawnBlob( map, "necromancer", offset, 3, false);
                offsets[autotile_offset].push_back( offset );
            }
    Note that in spawnblob, the number "3" is purple team, so when the map loaded, the map would find a pixel that matches the necromancer color, spawn it, and set it to team 3.

    If you need a chatcommand.as that allows you to make a different colored team, here's an attachment that you can either replace with your chatcommands.as or add it to your mods folder. You would just say !bomber 4 and itll create a bomber on team 4. If you do not declare a team, itll create it for the team that you are on.
     

    Attached Files:

  15. king-george

    king-george Haxor Staff Alumni Tester

    Messages:
    284
    well, i would like to do it on a server, but i am making my own server now, a test server, so thanks for the chatcommand.as moddification!