shield buster

  • Two Factor Authentication is now available on BeyondUnreal Forums. To configure it, visit your Profile and look for the "Two Step Verification" option on the left side. We can send codes via email (may be slower) or you can set up any TOTP Authenticator app on your phone (Authy, Google Authenticator, etc) to deliver codes. It is highly recommended that you configure this to keep your account safe.

Donator

New Member
Jun 26, 2003
146
0
0
Vienna
Visit site
Any creative ideas how to code a splash damage effect that instantly destroys your shield, but leaves the victim's health completely (or pretty much) unharmed? I basically need a routine that accompanies the usual HurtRadius() command and sets the shield of all targets within hurt radius to zero, before actually doing damage.
 

Donator

New Member
Jun 26, 2003
146
0
0
Vienna
Visit site
Well, it's no problem to accomplish if I modify the NetDamage function of my shield mutator, but that doesn't satisfy me really. I would rather want the code to be part of the weapon that caused the damage, if that's possible.
 

Donator

New Member
Jun 26, 2003
146
0
0
Vienna
Visit site
Nevermind. Finally got it to work maybe 5 minutes after posting this :p
So expect a supershield-busting, EMP grenade lobbing Combat Mortar in the next beta of Arkon Weapons.
 

Donator

New Member
Jun 26, 2003
146
0
0
Vienna
Visit site
I'm a bit at a loss again. How would a mutator look like that allows me to modify default properties of the xPawn class (shield overlay and hit sounds in particular)? My idea was to write a mutator with an AllActors call in the PostBeginPlay function, something like

foreach AllActors(class'xPawn')
{
default.ShieldStrengthMax=NewShieldMaxStrength;
}

but since it won't work I'd be thankful if somebody found the time to point out what variables have to be handed to AllActors to return all players (which are xPawns, I think, or not?)
 

Smoke39

whatever
Jun 2, 2001
1,793
0
0
Donator said:
I'm a bit at a loss again. How would a mutator look like that allows me to modify default properties of the xPawn class (shield overlay and hit sounds in particular)? My idea was to write a mutator with an AllActors call in the PostBeginPlay function, something like

foreach AllActors(class'xPawn')
{
default.ShieldStrengthMax=NewShieldMaxStrength;
}

but since it won't work I'd be thankful if somebody found the time to point out what variables have to be handed to AllActors to return all players (which are xPawns, I think, or not?)
If you wanted to do it like that, you should do this:
Code:
local xPawn p;

foreach DynamicActors( class'xPawn', p )
	p.Default.ShieldStrengthMax = NewShieldMaxStrength;
But I don't think that would work. You might wanna do something more like this:
Code:
function bool CheckReplacement( Actor Other, out byte bSuperRelevant )
{
	bSuperRelevant = 0;
	if ( Other.IsA('xPawn') )
		xPawn(Other).ShieldStrengthMax = NewShieldMaxStrength;

	return true;
}
Maybe check the xPawn's current ShieldStrengthMax to keep it from constantly setting and resetting the variable for everyone, but I haven't had a trmendous amount of luck with adding if's to that function.

There may be a better way. I'm not much of a mutator maker myself. :p
 

Donator

New Member
Jun 26, 2003
146
0
0
Vienna
Visit site
Thanks a lot. Though I didn't have any luck with the ShieldMax yet I still found a way to get rid of the redundant orange shield overlay at last. Unfortunately the shield hit sound is also directly called, not via a default variable. Ah well, bad luck.

As additional thank you here's a new screenshot, with much improved quality.
 

Attachments

  • ShieldShot4.jpg
    ShieldShot4.jpg
    59.3 KB · Views: 19
Last edited: