Перейти к содержимому
View in the app

A better way to browse. Learn more.

Zloplay community

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

[Request] Random Classes Mod

Опубликовано:

Hey guys!

I just played some rounds with random classes (made them using this). It was fun and I thought about creating such a mod. The problem is that I suck at modding, so maybe one of you talented guys could do that...

It's really simple. The player gets a random class (primary, secondary, perks, killstreak-rewards, ...) and plays with that (one round). A random class will be given at each respawn.

(It's like "Roll The Dice" :3)

What do you think about this? Would someone do that?

 

- SerPo

Featured Replies

Опубликовано:
If no one else has started this, I'll start it tomorrow. <3 Hehe. :P

Oh, that would be nice :3

(is that your second account, Boots?)

 

Yeah, whoops, my other one is 10th prestige, and I can't change it. :/ So I started a new one Lulz. XD

Опубликовано:
Maybe you can use this: http://picacid.com/mw2classgen/

Did you even read the whole post?

I said that we played with random classes which we made using this class generator. But a mod would be much better.

Oops. I'm sorry. I did not click the link. :D

Опубликовано:

Ok, i finished kind of a beta version.

Not sure about the killstreaks though. They might get bugged when they are chosen randomly every spawn. (i mean something like this: you earn a reward like predator, you die before you use it. When you respawn the 3 streaks are set to other ones, predator isn't chosen...)

I could change the method and choose the streaks randomly after connect and not every spawn, that shouldn't cause any bugs.

Another thing: onemanarmy, is included as of now. Not sure if it should be... as it is now, choosing a class through the onemanarmy-menu will get you a new "random" class. (so you won't get the one you choose, just a random one). I am open for suggestions.

 

Well, anyone who wants to test my beta version:

 

Feedback would be much appreciated. ;)

 

EDIT: Updated to beta 2, which avoids that attachment1 and attachment2 are the same.

And onemanarmy is working as usual now, if you get it randomly, you will be able to change to the class you want to through the oma menu (so you won't get a random one when using the oma menu like in beta 1).

 

EDIT2: Updated to beta 3:

Killstreaks randomness fixed. And fixed another small thing.

 

Updated to RC1:

 

EDIT3: released v1.0 here:

viewtopic.php?f=17&t=16722

Опубликовано:

Updated to beta3, as some of the killstreaks were given more often than others... (the ones which need the same killstreak count e.g. carepackage and counteruav, sentry and predator etc. have had lower chance to get chosen than the others)

Опубликовано:

@banz:

You could use level.weaponList to pick a random gun. I used something like this this for my (similar) mod:

 

nextGun() {
	self.camo = randomint(9) + 1;
	for (; {
		self.gun = level.weaponList[randomint(level.weaponList.size)];
		if (isDefined(self.gun)
		 && self.gun != "c4_mp"
		 && self.gun != "stinger_mp"
		 //&& self.gun != "javelin_mp"
		 && self.gun != "claymore_mp"
		 && self.gun != "semtex_mp"
		 //&& self.gun != "riotshield_mp"
		 && self.gun != "onemanarmy_mp"
		 && self.gun != "throwingknife_mp"
		 //&& self.gun != "rpg_mp"
		 //&& self.gun != "at4_mp"
		 && self.gun != "none"
		 && self.gun != "gl_mp"
		 && !isSubStr(self.gun, "grenade")
		 && !isSubStr(self.gun, "_marker_")) {
			return self.gun;
		}
}

Опубликовано:
@banz:

You could use level.weaponList to pick a random gun. I used something like this this for my (similar) mod:

 

I thought about that, as you might have seen in the code.

 

//primaryWeapons = destPlayer getWeaponsListPrimaries();

//level.weaponList[level.weaponList.size] = weapon_name + "_" + combo + "_mp";



getRandomThingy( thing, attachment1 ) { ....

 

But as i give random primaries and secondaries, you would have to do something like isSecondary(), to make sure you get a primary and a secondary. (And i am not sure if there is something like that implemented by default, as i only found isSideArm( weapon ) function, but haven't tested it...)

 

As i give perks, camos, deathstreaks, randomly too, i would have have written the getRandomThingy() function anyway, i guess.

 

Besides that it's easier to exclude weapons etc. from the mod, at least if someone unexperienced wants to modify it, as they are all listed (not the weapon attachment combos though).

Опубликовано:
Ok, i finished kind of a beta version.

Not sure about the killstreaks though. They might get bugged when they are chosen randomly every spawn. (i mean something like this: you earn a reward like predator, you die before you use it. When you respawn the 3 streaks are set to other ones, predator isn't chosen...)

I could change the method and choose the streaks randomly after connect and not every spawn, that shouldn't cause any bugs.

Another thing: onemanarmy, is included as of now. Not sure if it should be... as it is now, choosing a class through the onemanarmy-menu will get you a new "random" class. (so you won't get the one you choose, just a random one). I am open for suggestions.

 

Well, anyone who wants to test my beta version:

 

Feedback would be much appreciated. ;)

 

EDIT: Updated to beta 2, which avoids that attachment1 and attachment2 are the same.

And onemanarmy is working as usual now, if you get it randomly, you will be able to change to the class you want to through the oma menu (so you won't get a random one when using the oma menu like in beta 1).

 

EDIT2: Updated to beta 3:

Killstreaks randomness fixed. And fixed another small thing.

 

 

Virustotal: https://www.virustotal.com/file/b2d1b5c ... 348497124/

 

Virustotal2: https://www.virustotal.com/file/74f00e9 ... 348497251/

 

>Comes of 4D1 forums.

>See banz started/finished.

>Nothing to do here.

LOL

 

Good job though man. :3 <3

Опубликовано:

So, i've added an information screen to the mod, which only pops-up once after the player connects. It won't show up again, as it would just be annoying, i think.

 

fuNFk.jpg

 

Other than that i've added weapon validation for the classes the player might choose, if he gets the onemanarmy perk. This version (the one without bots, duh) should be ready to be hosted on servers, in case someone is interested in doing so...

Anyway, here is RC1 of my randomness mod.

 

EDIT: Released v1.0 with some optimizations here:

viewtopic.php?f=17&t=16722

Опубликовано:
  • Автор

Just tested it with some clanmates... and it's awesome, good job!

Server: /connect serpo.no-ip.info:28962

(name is SerPo's Randomness Mod TDM | with XLRstats)

Опубликовано:
So, i've added an information screen to the mod, which only pops-up once after the player connects. It won't show up again, as it would just be annoying, i think.

 

fuNFk.jpg

 

Other than that i've added weapon validation for the classes the player might choose, if he gets the onemanarmy perk. This version (the one without bots, duh) should be ready to be hosted on servers, in case someone is interested in doing so...

Anyway, here is RC1 of my randomness mod.

 

Virustotal_1: https://www.virustotal.com/file/5c09c34 ... 348766192/

 

Virustotal_2: https://www.virustotal.com/file/b3560b0 ... 348765861/

Nice,i'll test it soon

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Гость
Ответить в тему...

Сейчас на странице 0

  • Нет пользователей, просматривающих эту страницу

Важная информация

Используя этот сайт, вы соглашаетесь Условия использования.

Account

Navigation

Поиск

Поиск

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.