WarHead Ammo

Tutorials and discussions about Mapping - Introduce your own ones!
User avatar
Barbie
Godlike
Posts: 2802
Joined: Fri Sep 25, 2015 9:01 pm
Location: moved without proper hashing

Re: WarHead Ammo

Post by Barbie »

SC]-[WARTZ_{HoF} wrote:You would need to use a mutator to change this value.
Hmm, the following simple Actor should also work (partially tested):

Code: Select all

class GimmeMoreDemeers expands Actor;

event PostBeginPlay() {
local WarheadAmmo WA;
	
	foreach AllActors(class'WarheadAmmo', WA)
	{
		WA.Default.MaxAmmo = 5;
		WA.MaxAmmo = 5;
	}
	Destroy();
}
<EDIT>
I should mention that settings concerning default properties may remain at map switching - at least I noticed that on my server. If that setting is intended for your maps only and not for a server, you should consider better using a mutator.
</EDIT>
"Multiple exclamation marks," he went on, shaking his head, "are a sure sign of a diseased mind." --Terry Pratchett
Post Reply