[Mutator] SecondWind - Mk23 LAM Switch

  • 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.

yurch

Swinging the clue-by-four
May 21, 2001
5,781
0
0
USA, Maryland.
Visit site
UN17 said:
Because the project started out as a Stamina mutator :) Got sidetracked and never changed the package name. I like the name though... It just doesn't apply to the LAM or DE mod at the moment. Should I give them their own packages? SWMK23Lam.u & SWDE50.u?
Sounds like a mutator I'm familiar with... ;)
 

Beppo

Infiltration Lead-Programmer
Jul 29, 1999
2,290
5
38
53
Aachen, Germany
infiltration.sentrystudios.net
Got an email about the LAM switch muty reducing the bulk of the Mk23 to zero.

Guess you forgot to set its bulk in a loadout mutator properly cause it is not the same old class name anymore.
Code:
class MyMutator extends INFc_LoadoutMutator;

function int CheckItemBulk(class A) {
	if ( ClassIsChildOf( class'MyPackage.MyNewWeaponClass', A ) ) 
     		return 6; //BulkValue of Mk23

	return -1;
}

Guess you need the same for the DE.50AE mutator.
 

UN17

Taijutsu Specialist
Dec 7, 2003
675
0
16
Hmm... I did not think of that! The DE already has it's own bulk return call because it's a completely new weapon. The Mk23 LAM only modifies the LAM part, so it did not occur to me that INF would not recognize it as one of the regular weapons, hence assign no bulk. Thanks for the info, I'll add that in right now :)


Edit: Note to future INF projects or mods, please don't hardcode everything again! Make everything modular so you and your fans can add content without hacking the script to bits and dodging conflicts left and right :)
 
Last edited:

Beppo

Infiltration Lead-Programmer
Jul 29, 1999
2,290
5
38
53
Aachen, Germany
infiltration.sentrystudios.net
Every new equipment class needs a new loadout mutator to be recognized within the game. This includes the loadout info, bulk, HUD stuff aso.

to your edit...
Name another mod that is in itself 'modable' and features own 'mutator hooks' for other folks to get their stuff included easily... ;)
 

UN17

Taijutsu Specialist
Dec 7, 2003
675
0
16
Yes! You discovered my "leave strange floating lights in mid-air" feature. I noticed this a long time ago while being forced to play TDM at gunpoint. The code is in there for the laserdot to destroy itself when it has no owner, I suppose TDM works in a different way. I'll change it in the next laser update, though I must say I'm waiting for Yurch to perfect his smooth laser dot. Play EAS!
 

{GD}Odie3

You Give Odie a Boner
Nov 19, 2001
1,248
3
38
55
Austin Texas
ghostdogs.net
Only one EAS server open in the US for now. GD server is TDM to help out Shan and his creeping Ping issue. Trying to find out if GD server will have the same issue(s) as Shan's TDM server.

So, better get that fix sooner than later. ;)