Removing certain weapons ?

Discussions about Servers
Skirge
Novice
Posts: 17
Joined: Wed Aug 14, 2013 1:33 pm

Removing certain weapons ?

Post by Skirge » Fri Nov 01, 2013 4:43 pm

So my server runs DM & CTF low grav rockets only, I want to use the redeemer in the CTF maps, I think my issue is as I use rocket arena mod that stops the redeemer showing up.
Is there a way to remove all weapons other than the rocket launcher and redeemer ?
I use mapvoteLA so its easy to select mods and other settings for DM & CTF game types, so my DM settings are fine.

Higor
Godlike
Posts: 1832
Joined: Sun Mar 04, 2012 6:47 pm

Re: Removing certain weapons ?

Post by Higor » Fri Nov 01, 2013 6:07 pm

If you can code mutators, you can do it in 10 minutes.

Subclass Mutator, copy this AlwaysKeep() into your new mutator.
Compile and save, load and now no mutator will be able to remove said weapon.

Code: Select all

function bool AlwaysKeep(Actor Other)
{
	if ( WarheadLauncher(Other) != none || WarheadAmmo(Other) != none )
		return true;
	if ( NextMutator != None )
		return ( NextMutator.AlwaysKeep(Other) );
	return false;
}
ImageImage
Image unreal://23.111.157.138:7777
Image unreal://46.228.199.205:7788

Skirge
Novice
Posts: 17
Joined: Wed Aug 14, 2013 1:33 pm

Re: Removing certain weapons ?

Post by Skirge » Fri Nov 01, 2013 7:06 pm

Cheers... WELLL over my head but I shall learn, I managed to make a logo texture for mapvoteLA so I will do this too.

:D
EDIT: A quick tutorial may help

lol

User avatar
Feralidragon
Godlike
Posts: 5313
Joined: Wed Feb 27, 2008 6:24 pm
Personal rank: Work In Progress
Location: Liandri

Re: Removing certain weapons ?

Post by Feralidragon » Fri Nov 01, 2013 8:14 pm

Skirge wrote: EDIT: A quick tutorial may help
There's one already on how to create a simple mutator: http://www.ut99.org/viewtopic.php?f=57&t=4482
Just read it and use Higor's code instead, and you're good to go.

UT99.org

Re: Removing certain weapons ?

Post by UT99.org » Fri Nov 01, 2013 11:12 pm

medor wrote:you can use rocket arena and use KeepIt Keep1 for add redeemer http://unrealtournament.99.free.fr/foru ... =51&t=1766

Skirge
Novice
Posts: 17
Joined: Wed Aug 14, 2013 1:33 pm

Re: Removing certain weapons ?

Post by Skirge » Sat Nov 02, 2013 12:09 pm

Brilliant thanks all

UT99.org

Re: Removing certain weapons ?

Post by UT99.org » Sat Nov 02, 2013 2:44 pm

medor wrote:Other ways

MoreGunv4 Adds more conventional weapons and also removing classic you do not want. http://unrealtournament.99.free.fr/foru ... =51&t=1717


Nelsona do one mod for remove all weapons you want serverside and player side ... need to remember the mod name.

Not try as serverside WeaponArena210 http://unrealtournament.99.free.fr/utfi ... ena210.zip

Skirge
Novice
Posts: 17
Joined: Wed Aug 14, 2013 1:33 pm

Re: Removing certain weapons ?

Post by Skirge » Sat Nov 02, 2013 5:33 pm

Cheers... struggle here though, those mods seem to crash the server as soon as I add the package line to the server ini.
The weapons arena one just removes all weapons lol

UT99.org

Re: Removing certain weapons ?

Post by UT99.org » Sat Nov 02, 2013 6:29 pm

medor wrote:
The weapons arena one just removes all weapons lol
Need to remove line weapon you want to save.

Skirge
Novice
Posts: 17
Joined: Wed Aug 14, 2013 1:33 pm

Re: Removing certain weapons ?

Post by Skirge » Sat Nov 02, 2013 7:10 pm

medor wrote:
The weapons arena one just removes all weapons lol
Need to remove line weapon you want to save.
? Sorry know I'm a pain, "remove line weapons" ? no idea what that means, is it in the .ini ? there wasn't one included.

Cheers

Edit------------------------------ by papercoffee


Oh wow I did it I made my own mute lol

Thanks so much

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

Re: Removing certain weapons ?

Post by papercoffee » Sat Nov 02, 2013 10:30 pm

Please avoid doubleposts ...use the Edit button instead.