Why are most singular custom weapons assigned to 9?

Search, find and discuss about Mutators!
User avatar
EvilGrins
Godlike
Posts: 7878
Joined: Thu Jun 30, 2011 8:12 pm
Personal rank: God of Fudge
Location: Palo Alto, CA

Why are most singular custom weapons assigned to 9?

Post by EvilGrins » Mon May 11, 2020 8:07 pm

By singular I mean weapons that aren't part of full weapon packs.

For example...

Blob Gun:
Image

M-16 Sniper with Night Vision:
Image

Goa-uld Staff Weapon:
Image

Why is 9 chosen for new weapons primarily?
Is there a simple way to assign weapons to a different number??
http://unreal-games.livejournal.com/
Image
medor wrote:Replace Skaarj with EvilGrins :mrgreen:
Smilies · viewtopic.php?f=8&t=13758

User avatar
OjitroC
Godlike
Posts: 2314
Joined: Sat Sep 12, 2015 8:46 pm

Re: Why are most singular custom weapons assigned to 9?

Post by OjitroC » Mon May 11, 2020 8:46 pm

EvilGrins wrote:
Mon May 11, 2020 8:07 pm
Why is 9 chosen for new weapons primarily?
Is there a simple way to assign weapons to a different number??
Don't know but I think 9 is the highest autoswitch priority and, if that is correct, that may be the reason.

The weapon slot a weapon uses is (in the weapon's .u file) DefaultProperties->Inventory->InventoryGroup.

You could use StuffSwapper and put the weapon you want to use in a slot other than 9 - that might work. Alternatively you can subclass the weapon and assign it to a dfferent InventoryGroup.

User avatar
papercoffee
Godlike
Posts: 9830
Joined: Wed Jul 15, 2009 11:36 am
Personal rank: coffee addicted !!!
Location: Cologne, the city with the big cathedral.

Re: Why are most singular custom weapons assigned to 9?

Post by papercoffee » Mon May 11, 2020 10:11 pm

OjitroC wrote:
Mon May 11, 2020 8:46 pm
Alternatively you can subclass the weapon and assign it to a dfferent InventoryGroup.
You talking to Evil Grins... he can't subclass.

:ironic:

User avatar
OjitroC
Godlike
Posts: 2314
Joined: Sat Sep 12, 2015 8:46 pm

Re: Why are most singular custom weapons assigned to 9?

Post by OjitroC » Mon May 11, 2020 11:37 pm

papercoffee wrote:
Mon May 11, 2020 10:11 pm
You talking to Evil Grins... he can't subclass.

:ironic:
Oh yeah, of course, I forgot. :P :P

Seriously though, it opens up a whole new world (as it were) if he can.

ExpEM
Skilled
Posts: 172
Joined: Wed Nov 09, 2016 1:48 am

Re: Why are most singular custom weapons assigned to 9?

Post by ExpEM » Tue May 12, 2020 7:29 am

EvilGrins wrote:
Mon May 11, 2020 8:07 pm
Is there a simple way to assign weapons to a different number??
Really? You can't spend 15 min writing a mutator?

Just for you: ExpEM_WeaponSlotSwitcher.u
Works for up to 32 weapons, it changes the weapon slots of whatever weapon(s) you set in the config.
Default mutator changes the Redeemer to slot 1 as an example of how to use the config.
You do not have the required permissions to view the files attached to this post.

User avatar
EvilGrins
Godlike
Posts: 7878
Joined: Thu Jun 30, 2011 8:12 pm
Personal rank: God of Fudge
Location: Palo Alto, CA

Re: Why are most singular custom weapons assigned to 9?

Post by EvilGrins » Tue May 12, 2020 9:33 am

ExpEM wrote:
Tue May 12, 2020 7:29 am
EvilGrins wrote:
Mon May 11, 2020 8:07 pm
Is there a simple way to assign weapons to a different number??
Really? You can't spend 15 min writing a mutator?
Though I haven't hosted games in years, map edits I do periodically wind up being used on servers and it seems to be me that it would be simpler for any who do so not to require the needs of mutators to get a map to play right. I mean, don't get me wrong... I love mutators, but what makes more sense? Having to setup a mutator to get something to work or finding a simple way to reassign things so a map is self-sustainable?

Sure, lots of servers use mutators but they shouldn't have to alter their setup to accommodate every random map.
OjitroC wrote:
Mon May 11, 2020 11:37 pm
papercoffee wrote:
Mon May 11, 2020 10:11 pm
You talking to Evil Grins... he can't subclass.
Seriously though, it opens up a whole new world (as it were) if he can.
So walk me through how one does that, then.
http://unreal-games.livejournal.com/
Image
medor wrote:Replace Skaarj with EvilGrins :mrgreen:
Smilies · viewtopic.php?f=8&t=13758

ExpEM
Skilled
Posts: 172
Joined: Wed Nov 09, 2016 1:48 am

Re: Why are most singular custom weapons assigned to 9?

Post by ExpEM » Tue May 12, 2020 10:25 am

EvilGrins wrote:
Tue May 12, 2020 9:33 am
Having to setup a mutator to get something to work or finding a simple way to reassign things so a map is self-sustainable?
Yes.

User avatar
EvilGrins
Godlike
Posts: 7878
Joined: Thu Jun 30, 2011 8:12 pm
Personal rank: God of Fudge
Location: Palo Alto, CA

Re: Why are most singular custom weapons assigned to 9?

Post by EvilGrins » Tue May 12, 2020 10:43 am

ExpEM wrote:
Tue May 12, 2020 10:25 am
EvilGrins wrote:
Tue May 12, 2020 9:33 am
Having to setup a mutator to get something to work or finding a simple way to reassign things so a map is self-sustainable?
Yes.
Image
Did you miss there were 2 options there?
http://unreal-games.livejournal.com/
Image
medor wrote:Replace Skaarj with EvilGrins :mrgreen:
Smilies · viewtopic.php?f=8&t=13758

User avatar
OjitroC
Godlike
Posts: 2314
Joined: Sat Sep 12, 2015 8:46 pm

Re: Why are most singular custom weapons assigned to 9?

Post by OjitroC » Tue May 12, 2020 2:10 pm

EvilGrins wrote:
Tue May 12, 2020 10:43 am
ExpEM wrote:
Tue May 12, 2020 10:25 am
EvilGrins wrote:
Tue May 12, 2020 9:33 am
Having to setup a mutator to get something to work or finding a simple way to reassign things so a map is self-sustainable?
Yes.
Image
Did you miss there were 2 options there?
The mutator is the answer to your initial question "Is there a simple way to assign weapons to a different number?".

What you actually want is a way to change of the InventoryGroup of a weapon placed in a specific map but only in that map - the mutator will obviously change the InventoryGroup of a particular weapon in all maps. The answer to this question is that there isn't a simple way.