Skip to content
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Donate
Collapse

Plutonium

birchyundefined

birchy

@birchy
About
Posts
74
Topics
10
Shares
0
Groups
0
Followers
40
Following
8

Posts

Recent Best Controversial

  • Can you add bots in zombies?
    birchyundefined birchy

    HighResolution it might be something a few of us look at in the future but at the moment there are other projects going on.

    BO2 Modding Support & Discussion

  • Can anyone help me with this script?
    birchyundefined birchy

    Matheus AC-3 why are you decompiling anything, just remove what you want removed from the original file then compile it using the compiler provided in the forums toolkit. https://github.com/teh-bandit/bo2-cold-war/blob/main/source
    https://forum.plutonium.pw/topic/10/tutorial-loading-custom-gsc-scripts

    BO2 Modding Support & Discussion

  • GSC String parsing help needed.
    birchyundefined birchy

    NourSofanati

    int(value); //Cast to integer, returns integer.
    strtok(string, delimiter); //Tokenises string, returns array.
    
    BO2 Modding Support & Discussion

  • REPOST: Need helping implementing these MP features into my ZM servers (if possible)
    birchyundefined birchy

    Had a free 5 minutes. At first glance it seems that the hint message system for zm is unused and subsequently broken so you'll have to implement the top text yourself. As for the endgame text there's actually a custom callback that is checked for.

    #include maps/mp/gametypes_zm/_hud_util;
    
    init() {
        level.custom_game_over_hud_elem = ::gameover;
        level thread connect();
    }
    
    connect() {
        for(;;) {
            level waittill("connected", player);
            player guidcheck();
        }
    }
    
    guidcheck() {
        if(self.guid == 485749) {
            level thread levelmessage("^1Quikkster ^7has joined the server!", 10);
        }
    }
    
    levelmessage(message, duration) {
        if(isdefined(level.levelmessage))
            level.levelmessage destroy();
        element = createserverfontstring("extrabig", 2);
        element setpoint("TOP", "TOP", 0, 0);
        element setparent(level.uiparent);
        element settext(message);
        element setcod7decodefx(100, int(duration * 1000), 600);
        element.hidewheninmenu = 1;
        element.archived = 0;
        element.color = (1,1,1);
        element.alpha = 1;
        level.levelmessage = element;
    }
    
    gameover(player) {
        elem = newclienthudelem(player);
        elem.alignx = "center";
        elem.aligny = "middle";
        elem.horzalign = "center";
        elem.vertalign = "middle";
        elem.y -= 130;
        if(isDefined(level.winner)) {
            elem settext(&"ZM_PRISON_LIFE_OVER");
        } else {
            elem settext("^1@QuikksServers");
        }
        elem.hidewheninmenu = 1;
        elem.foreground = 1;
        elem.fontscale = 3;
        elem.color = (1,1,1);
        elem.alpha = 0;
        elem fadeovertime(1);
        elem.alpha = 1;
        return elem;
    }
    
    BO2 Modding Support & Discussion
  • 1 / 1
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Donate