<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Script for making perma Jug not stack?]]></title><description><![CDATA[<p dir="auto">Perma jug stacking with jug is a little strong imo and I wanted to change it any ideas? I tried creating an if statement to check for the player health being at 340 and setting it to 250 but it didn't work. Any advice is appeciated.</p>
]]></description><link>https://forum.plutonium.pw/topic/16389/script-for-making-perma-jug-not-stack</link><generator>RSS for Node</generator><lastBuildDate>Sun, 19 Apr 2026 16:57:30 GMT</lastBuildDate><atom:link href="https://forum.plutonium.pw/topic/16389.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 14 Dec 2021 23:03:19 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Script for making perma Jug not stack? on Wed, 15 Dec 2021 00:27:18 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/jezuzlizard" aria-label="Profile: JezuzLizard"><bdi>JezuzLizard</bdi></a> Actually figured it out by having the script check for if you bought jug and set your health to 250. I appreciate this though because it helps me learn.</p>
]]></description><link>https://forum.plutonium.pw/post/65324</link><guid isPermaLink="true">https://forum.plutonium.pw/post/65324</guid><dc:creator><![CDATA[Dragon115]]></dc:creator><pubDate>Wed, 15 Dec 2021 00:27:18 GMT</pubDate></item><item><title><![CDATA[Reply to Script for making perma Jug not stack? on Wed, 15 Dec 2021 00:14:13 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/dragon115" aria-label="Profile: Dragon115"><bdi>Dragon115</bdi></a><br />
Try this code:</p>
<pre><code>main()
{
	replaceFunc( maps/mp/zombies/_zm_perks::perk_set_max_health_if_jugg, ::perk_set_max_health_if_jugg_override );
}

perk_set_max_health_if_jugg_override( perk, set_premaxhealth, clamp_health_to_max_health ) //checked matches cerberus output
{
	max_total_health = undefined;
	if ( perk == "specialty_armorvest" )
	{
		if ( set_premaxhealth )
		{
			self.premaxhealth = self.maxhealth;
		}
		max_total_health = level.zombie_vars[ "zombie_perk_juggernaut_health" ];
	}
	else if ( perk == "specialty_armorvest_upgrade" )
	{
		if ( set_premaxhealth )
		{
			self.premaxhealth = self.maxhealth;
		}
		max_total_health = level.zombie_vars[ "zombie_perk_juggernaut_health_upgrade" ];
	}
	else if ( perk == "jugg_upgrade" )
	{
		if ( set_premaxhealth )
		{
			self.premaxhealth = self.maxhealth;
		}
		if ( self hasperk( "specialty_armorvest" ) )
		{
			max_total_health = level.zombie_vars[ "zombie_perk_juggernaut_health" ];
		}
		else
		{
			max_total_health = 100;
		}
	}
	else
	{
		if ( perk == "health_reboot" )
		{
			max_total_health = 100;
		}
	}
	if ( isDefined( max_total_health ) )
	{
		if ( self maps/mp/zombies/_zm_pers_upgrades_functions::pers_jugg_active() &amp;&amp; !hasPerk( "specialty_armorvest" ) )
		{
			max_total_health += level.pers_jugg_upgrade_health_bonus;
		}
		self setmaxhealth( max_total_health );
		if ( isDefined( clamp_health_to_max_health ) &amp;&amp; clamp_health_to_max_health == 1 )
		{
			if ( self.health &gt; self.maxhealth )
			{
				self.health = self.maxhealth;
			}
		}
	}
}
</code></pre>
]]></description><link>https://forum.plutonium.pw/post/65322</link><guid isPermaLink="true">https://forum.plutonium.pw/post/65322</guid><dc:creator><![CDATA[JezuzLizard]]></dc:creator><pubDate>Wed, 15 Dec 2021 00:14:13 GMT</pubDate></item></channel></rss>