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

Plutonium

TheHiddenHourundefined

TheHiddenHour

@TheHiddenHour
Contributor
About
Posts
55
Topics
1
Shares
0
Groups
1
Followers
6
Following
4

Posts

Recent Best Controversial

  • [Support] Server Side Support
    TheHiddenHourundefined TheHiddenHour

    Farzad said in Server Side Support:

    TheHiddenHour okay well how come for some odd reason the next round the bot is not spawned in and is in my team? But the first round it’s all well

    Farzad said in Server Side Support:

    TheHiddenHour I mean I would give you the compiled gsc to test it, but according to the discord image you sent regarding your PC specs, it ain’t lookin you finna hop on bo2 ma baby, but I just need help man plz πŸ™πŸΌ

    I'm not sure why the bot switches teams, but you can do a check to see how many bots are on a team and then kick them accordingly to keep the teams balanced.

    BO2 Modding Support & Discussion

  • [Support] Server Side Support
    TheHiddenHourundefined TheHiddenHour

    Farzad Mate, I have absolutely no clue what the hell what you're trying to explain to me lmao. Anyways, I've given you the function name to change a players team. The logic for when to do it and such is going to be up to you.

    BO2 Modding Support & Discussion

  • [Support] Server Side Support
    TheHiddenHourundefined TheHiddenHour

    Farzad maps/mp/teams/_teams::changeteam(team) can change a players team. Try putting it in your onPlayerSpawned() with the team parameter set to "axis".

    BO2 Modding Support & Discussion

  • [Release] Mob of the Dead Mod: "A cat has 9 lives"
    TheHiddenHourundefined TheHiddenHour

    Nice release, I'm sure zombies players will enjoy it πŸ‘

    BO2 Modding Releases & Resources

  • [Support] Can you set DVAR so players have VIP when map changes?
    TheHiddenHourundefined TheHiddenHour

    mikzy It should work between map restarts. The only thing that can reset the dvars on console at least is through doing it manually or resetting the entire server.

    You also might want to make your own isInArray() function, I can't remember if it actually exists or is accessible πŸ€” .

    arrayContains(array, value) {
    	foreach(item in array) {
    		if(item == value) {
    			return true;
    		}
    	}
    	
    	return false;
    }
    
    BO2 Modding Support & Discussion

  • [Support] Pre-match timer
    TheHiddenHourundefined TheHiddenHour

    Enki said in Pre-match timer:

    level.gracePeriod
    level.prematchPeriod
    level.inGracePeriod
    

    you can play around with this variables
    but they can cause some problems for example on our tsd server sometimes the game dont end if you hit a shot

    You can make the level thread a function that sets those variables in a loop and then ends on game_ended.

    BO2 Modding Support & Discussion

  • [Support] Permanent information message in the player screen !Help
    TheHiddenHourundefined TheHiddenHour

    Kalitos Ahh, my bad about the function name. createServerFontString() is the games built in function for drawing server text and createServerText() is just my abstraction of it with additional parameters lmao.

    If you want to move the text, you need to change the x and y parameters of your function call. Try messing with those numbers and see if you can get it somewhere you like.

    BO2 Modding Support & Discussion

  • Should I work on a new GSC editor?
    TheHiddenHourundefined TheHiddenHour

    Ducxy Precisely, making it a plugin would also give you the ability to make the backend a general command line process for more flexibility if you desired. You could have your syntax checker, compiler, injector, etc in the same program and just pass it parameters. This would make it incredibly easy to port to other software, especially if you decided to open source it πŸ˜„ .

    BO2 Modding Support & Discussion

  • Should I work on a new GSC editor?
    TheHiddenHourundefined TheHiddenHour

    Ducxy said in Should I work on a new GSC editor?:

    monaco editor

    I'd actually like to see something more akin to a VS Code plugin rather than an entirely new editor. It'd allow me to continue using my VS Code settings and would probably have a smaller footprint as well 😊 .

    BO2 Modding Support & Discussion

  • [Support] Permanent information message in the player screen !Help
    TheHiddenHourundefined TheHiddenHour

    Kalitos

    createServerText(font, text, fontScale, point, relativePoint, x, y, color, glowColor, alpha, glowAlpha, sort, team) {
    	elem = createServerFontString(font, fontScale, team);
    	elem setPoint(point, relativePoint, x, y);
    	elem setText(text);
    	elem.color = color;
    	elem.glowColor = glowColor;
    	elem.alpha = alpha;
    	elem.glowAlpha = glowAlpha;
    	elem.sort = sort;
    	
    	return elem;
    }
    

    You can call this function like so level.infoHud = level createServerFontString("default", "server_text_here", 1, "TOPLEFT", "TOPLEFT", 0, 0, (1, 1, 1), undefined, 1, undefined); in init() (iirc πŸ€₯ ).

    BO2 Modding Support & Discussion

  • [Release] GSC Dump Searcher
    TheHiddenHourundefined TheHiddenHour

    Ox_ 010 Editor looks like a wonderful program but it has a hefty price tag 😐 . However, it does offer scripting support and is worth the cash so honestly something I see myself investing into in the future for my general workflow.

    AstroGrep is actually what I was envisioning for this project to evolve into, thanks for showing it to me. One of the main things I wanted was to peek into the file and line where the instances were found. I'll give it a try πŸ‘

    Edit: I just tried AstroGrep and it's actually slower than my project doing both case sensitive and case insensitive searches. Maybe there's some configuration I need to do πŸ€” .

    BO2 Modding Releases & Resources

  • [Support] Can you set DVAR so players have VIP when map changes?
    TheHiddenHourundefined TheHiddenHour
    init() {
    	level.vipXuids = [];
    	// You can predefine XUIDs in your script like this 
    	level.vipXuids[0] = "predefined_xuid_here";
    	level.vipXuids[1] = "another_one";
    	level.vipXuids[2] = "etc, etc.";
    	
    	level thread onPlayerConnect();
    }
    
    onPlayerConnect() {
    	for(;;) {
    		level waittill("connected", player);
    		
    		if(isInArray(level.vipXuids, player getXUID())) { // If the player XUID is in the predefined array, give them VIP status and set their VIP dvar 
    			player.status = "VIP++"; // Give them VIP status for the script 
    			self setPlayerVipDvar(true); // Set their VIP status DVAR 
    		}
    		else if(player getPlayerDvar()) { // If the player does not have their XUID in the predefined array but has their VIP dvar set 
    			player.status = "VIP++"; // Give them VIP status for the script 
    			self setPlayerVipDvar(true); // Set their VIP status DVAR 
    		}
    		
    		/*
    		You could combine the two conditions using an || operator, but this should be a little easier to understand for beginners.
    		*/
    		
    		player thread onPlayerSpawned();
    	}
    }
    
    onPlayerSpawned() {
    	self endon("disconnect");
    	level endon("game_ended");
    	
    	for(;;) {
    		self waittill("spawned_player");
    		
    		if(self.status == "VIP++") { // If player has VIP status 
    			// Do VIP things
    		}
    	}
    }
    
    setPlayerVipDvar(value) {
    	setPlayerDvar(self, "vip_status", value);
    }
    
    getPlayerVipDvar() {
    	return getPlayerDvar(self, "vip_status");
    }
    
    setPlayerDvar(player, dvar, value) {
    	dvar = player getXUID() + "_" + dvar;
    	setDvar(dvar, value);
    }
    
    getPlayerDvar(player, dvar) {
    	dvar = player getXUID() + "_" + dvar;
    	
    	return getDvar(dvar);
    }
    

    Here's how I'd accomplish what you're trying to do. It's untested but you can take a look to try and understand the general process as I left comments. I'm willing to help you on Discord or something since you at least attempted to write your own script and showed what you tried.

    BO2 Modding Support & Discussion

  • [Release] GSC Dump Searcher
    TheHiddenHourundefined TheHiddenHour

    Ox_ First of all, thanks for spending the time to write out some well-thought criticism. It's a thousand times better than some half-assed comment and I'm glad that yours is the first I've received.

    This project is in its infancy and I'm updating it regularly. I made it because it's something that I personally use on a daily basis and I plan on adding all sorts of functionality. The initial version you see here is the absolute bare-minimum and will improve over time. As I need more from the project, I'll add it. It'd be great if you could list some of the programs you mentioned to be better so I can hopefully incorporate some of their aspects into this one.

    You're absolutely right that the GUI isn't responsive, I haven't gotten around incorporating threading and it's something I'd like to do once the basics are fleshed out because it's not like the program is doing much at the moment. I'd like to have a skeleton before I move onto the organs.

    Regex is on the table but not a high priority because I personally never use it. Now that you've made your comment, I might just push it up the list since at least you seem to find it to be of importance.

    Your function idea is actually a good one but would probably require me to write my own parser which is kind of overkill for something that's supposed to primarily search for instances of strings. I'd even bring up your argument that there's other programs to do that for you but they generally include a suite of other tools that you just don't need. It's like editing an XML, JSON, or CVS file with an IDE, and that's exactly why I started developing this project. It's still a good idea that I'll most likely end up bringing into fruition just to see if it fits well into the idea of what this is supposed to be.

    To conclude, it's never a bad thing to have options lol. Whether someone wants to use this project is up to them and they're free to use other ones if it doesn't suit their tastes. It's also open source so they can go ahead add features and changes themselves if they desire. Honestly, this project is primarily for me and my needs, but I'd still like to make it available for anyone who'd ever want to utilize it. Again, thanks for your criticisms.

    BO2 Modding Releases & Resources

  • [Release] GSC Dump Searcher
    TheHiddenHourundefined TheHiddenHour

    GSC Dump Search

    This program will search the contents of every GSC file in the defined directory for a specified string and return its usage, path, and line. It is also able to show the origin script with syntax highlighting by double clicking the location cell of the search results.

    Photos

    Main Form

    Main Form

    GSC Peek Form

    GSC Peek Form

    Notes

    You must provide your own decompiled GSC dump. The program looks for a folder named gsc-dump at the root of the program directory and can be changed in config.json.

    All of the toolbar functionality is also missing at the moment.

    Downloads

    GitHub Source
    GitHub Releases
    Full GSC Dump (SP, MP, & ZM scripts)
    Trimmed GSC Dump (Only MP & ZM scripts)

    I did not make these dumps. I came to possess them long ago from people on other forums.

    BO2 Modding Releases & Resources

  • [Support] Is it possible to customize the afterlife count of Mob of the Dead?
    TheHiddenHourundefined TheHiddenHour

    Heres a decompiled copy of maps/mp/zombies/_zm_afterlife.gsc

    This function looked interesting. Maybe you can try calling it and seeing what it does.

    // 0x397C
    afterlife_add()
    {
    	self.lives++;
    	self thread afterlife_add_fx();
    	self.lives++;
    	self thread afterlife_add_fx();
    	self playsoundtoplayer( "zmb_afterlife_add", self );
    	self setclientfieldtoplayer( "player_lives", self.lives );
    // SP = 0x0 - check OK
    }
    
    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