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

Plutonium

DeathMachineundefined

DeathMachine

@DeathMachine
About
Posts
6
Topics
1
Groups
0
Followers
15
Following
14

Posts

Recent Best Controversial

  • [Release][MP] Give Random Scorestreaks Script
    DeathMachineundefined DeathMachine

    Hey guys! Can someone make this for Black Ops 1 if possible? I tried to convert it myself by modifying code to Black Ops 1 specific ones, but nothing works.

    Code I tried:

    #include maps\mp\_utility;
    #include maps\mp\gametypes\_hud_util;
    #include common_scripts\utility;
    
    init()
    {
    	setDvar( "grs_main", true );	
    	
    	setDvar( "grs_player_type", "all" );
    		
    	setDvar( "grs_player_team", "all" );
    		
    	setDvar( "grs_notify", true );
    		
    	setDvar( "grs_delay", 10 );
    
    	setDvar( "grs_allowed_streaks", "spy_plane,rc_xd,counter_spy_plane,sam_turret,care_package,napalm_strike,sentry_gun,mortar,minigun,cobra,valkyrie,blackbird,rolling_thunder,huey,dogs,hind" );
    
    	wait 20;
    	thread mainLoop();
    }
    
    getKillstreakArray()
    {
    	killstreakIds = [];
    	killstreakIds["spy_plane"] = "radar_mp";
    	killstreakIds["rc_xd"] = "rcbomb_mp";
    	killstreakIds["counter_spy_plane"] = "counteruav_mp";
    	killstreakIds["sam_turret"] = "tow_turret_drop_mp";
    	killstreakIds["care_package"] = "supply_drop_mp";
    	killstreakIds["napalm_strike"] = "napalm_mp";
    	killstreakIds["sentry_gun"] = "autoturret_mp";
    	killstreakIds["mortar"] = "mortar_mp";
    	killstreakIds["minigun"] = "minigun_mp";
    	killstreakIds["cobra"] = "helicopter_comlink_mp";
    	killstreakIds["valkyrie"] = "m220_tow_drop_mp";
    	killstreakIds["blackbird"] = "radardirection_mp";
    	killstreakIds["rolling_thunder"] = "airstrike_mp";
    	killstreakIds["huey"] = "helicopter_gunner_mp";
    	killstreakIds["dogs"] = "dogs_mp";
    	killstreakIds["hind"] = "helicopter_player_firstperson_mp";
    	
    	allowedStreaks = getDvar("grs_allowed_streaks");
    	
    	split = strtok( allowedStreaks, "," );
    	
    	result = [];
    	
    	for ( i = 0; i < split.size; i++ ) {
    		streak = split[i];
    		streakId = killstreakIds[streak];
    		
    		if (isDefined(streakId)) {
    			
    			result[result.size] = killstreakIds[streak];			
    		}
    	}
    	
    	return result;
    }
    
    GiveKillstreak(killstreak)
    {
    	self thread maps\mp\gametypes\_hardpoints::giveKillstreak(killstreak, killstreak, true, true);
    }
    
    mainLoop()
    {
    	level endon( "game_ended" );
    
    	killstreakNames = [];
    	killstreakNames["radar_mp"] = "Spy Plane";
    	killstreakNames["rc_xd"] = "RC-XD";
    	killstreakNames["counteruav_mp"] = "Counter-Spy Plane";
    	killstreakNames["tow_turret_drop_mp"] = "Sam Turret";
    	killstreakNames["supply_drop_mp" = "Care Package";
    	killstreakNames["napalm_mp"] = "Napalm Strike";
    	killstreakNames["autoturret_mp"] = "Sentry Gun";
    	killstreakNames["mortar_mp"] = "Mortar Team";
    	killstreakNames["minigun_mp"] = "Death Machine";
    	killstreakNames["helicopter_comlink_mp"] = "Attack Helicopter";
    	killstreakNames["m220_tow_drop_mp"] = "Valkyrie Rockets";
    	killstreakNames["radardirection_mp"] = "Blackbird";
    	killstreakNames["airstrike_mp"] = "Rolling Thunder";
    	killstreakNames["helicopter_gunner_mp"] = "Chopper Gunner";
    	killstreakNames["dogs_mp"] = "Attack Dogs";
    	killstreakNames["helicopter_player_firstperson_mp"] = "Hind";
    	
    	for ( ;; )
    	{
    		delay = getDVarInt( "grs_delay" );
    		notf = getDVarInt( "grs_notify" );
    		
    		wait delay;
    		
    		if (getDvarInt( "grs_main" )) {
    			tempPlayer = "";
    			
    			playerType = getDvar("grs_player_type");
    			if (playerType != "bots" && playerType != "players" && playerType != "all")
    				playerType = "all";
    				
    			team = getDvar("grs_player_team");
    			if (team != "allies" && team != "axis" && team != "all")
    				team = "all";
    			
    			tempPlayer = PickRandom(getPlayerArray(playerType, team));			
    				
    			killstreakList = getKillstreakArray();
    				
    			if (killstreakList.size > 0) {
    				tempKs = PickRandom(killstreakList);
    					
    				tempPlayer GiveKillstreak(tempKs);
    					
    				self iPrintln("Giving " + killstreakNames[tempKs] + " to " + tempPlayer.name + "");
    			}
    		}
    	}
    }
    
    PickRandom(arr)
    {
    	if ( !arr.size )
    		return undefined;
    
    	return arr[randomInt( arr.size )];
    }
    
    getPlayerArray(type, team)
    {
    	answer = [];
    
    	for ( i = 0; i < level.players.size; i++ )
    	{
    		player = level.players[i];
    		
    		if ( isDefined( player ) && isDefined( player.team )) {
    			if (
    				(type == "bots" && player isBot()) ||
    				(type == "players" && !(player isBot())) ||
    				(type == "all")
    			) {
    				if (
    					(team == "allies" && player.team == "allies") ||
    					(team == "axis" && player.team == "axis") ||
    					(team == "all" && (player.team == "allies" || player.team == "axis"))
    				) {
    					answer[answer.size] = player;
    				}
    			}
    		}
    	}
    
    	return answer;
    }
    

    Any help would be appreciated 🙂


  • Server advertising, promotion and introduction thread.
    DeathMachineundefined DeathMachine

    I would like to announce 4 T6 servers:

    • VANILLA | FFA/TDM/DEM/DOM/HP/KC | 24/7 | BOTS
      This server is pure Black Ops 2 experience with map rotation, multiple gammemodes and 16 bots.
    • RTD | FFA/TDM/DEM/DOM/HP/KC | 24/7 | BOTS
      On this server the map rotation is the same as above with the gamemodes as well, but everytime you spawn, you get a random thing (literally anything). Warning! Chaos may occur, but still fun. 12 bots
    • MAD STREAKS | FFA/TDM/DEM/DOM/HP/KC | 24/7 | BOTS
      Map rotation with the same gamemodes as above, but every 10 seconds someone gets a random scorestreak (from UAV to Swarm). In a minute scorestreak chaos may occur, just luck is needed.
    • PROP HUNT | 24/7 | MAP ROTATION
      Fully custom gamemode, no bots, just good old Prop Hunt now in Black Ops 2 as well. Base game maps, only Studio DLC map is included. Have a nice hunting!
      On all servers IW4MAdmin is active, so cheaters (mainly on vanilla, but applies to the others as well) will be instantly banned with 0 tolerance!

    Cheers,
    DeathMachine


  • Problems since r3855 update
    DeathMachineundefined DeathMachine

    Xerxes

    Thank you very much for your help. Added the missing lines in the config, IW4MAdmin is running again perfectly 🙂

    Offtopic and not a huge problem: Since the latest update the prestige icons next to the player's names are unreasonably big:

    60449f19-2e19-4510-bc30-a5a63825118c-image.png

    Keep up the good work!


  • Problems since r3855 update
    DeathMachineundefined DeathMachine

    Xerxes

    In my server config this line is added:
    rcon_timeout 150

    The rcon whitelist as far as I know is a command that can be run on the server's command line. Tried the rconwhitelistadd "ip of IW4MAdmin". Is the ip of IW4MAdmin same as the PC's ip? If yes, nothing has changed with that command.


  • Problems since r3855 update
    DeathMachineundefined DeathMachine

    Resxt

    Sorry for the leak, didn't notice when I wrote the post. Unfortunately yes, IW4MAdmin still needs to be fixed. What I also noticed with the r3903/3904 update is the admin tool now does not appear on the server's command window. Before when it tried to connect, several lines of information appeared, and when the connection was successful, the console started to show the player names, score, ip and ping columns in a table and every second this line: sv_iw4madmin_in is "". Now the tool is still able to connect, but with the first mentioned issue.
    bff81fe9-4842-4ad9-9e22-a15783f0f771-image.png
    This loop is endless with these lines as well if someone joins or leaves the server:
    4c220ade-53db-40cc-9a63-304fe1626619-image.png


  • Problems since r3855 update
    DeathMachineundefined DeathMachine

    Dear Plutonium devs,
    When the update mentioned in the title arrived I wrote this on IW4MAdmin's discord channel:
    Today Plutonium has been updated for me and IW4MAdmin stopped partially working. It can connect to my server, webfront is working properly, but Console is completely down. !Commands are not working, so I cannot ban cheaters for example, no Auto messages or welcome messages. Game is Black Ops 2, and I had no issues until today. This is what my dedicated server cmd shows every second: sv_iw4madmin_in is "1ClientDataRequestedNone15" where 15 sometimes changes to another number.

    1587c395-d6c9-4e18-9aa2-576f8ae74375-image.png

    RaidMax told me that the issue was with Plutonium, but after r3869 update nothing has been fixed. Even added the rcon_timeout dvar to the server config, and ran the rconwhitelistadd "ip" command on the server.

    Today update r3903 has arrived, but now with the issue above a new problem is appeared: I cannot join any server, the error is:
    Server replied with invalid "mods" data
    This is on the client command window, on the server side nothing shows up, Heartbeat successful, but the join attempt has no sign. I hope you can fix this soon as I love this project.

    Cheers

  • 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