Page 1 of 1
Dispersion Pistol powerup mod?
Posted: Tue Mar 06, 2012 9:16 pm
by GreatEmerald
I wonder, has anyone ever made a mod that would make enemies that die with a dispersion pistol in hand drop dispersion pistol powerups instead of absolutely nothing in multiplayer games? By multiplayer I mean that it would probably break the Unreal SP campaign, given the amount of enemies with DPs there, but in botmatches and online it would be a pretty neat mod.
Re: Dispersion Pistol powerup mod?
Posted: Tue Mar 06, 2012 9:55 pm
by BobIsUnreal
Theres only a few classes of monsters with the dispersion pistol actually in there hand ,
SkaarjTrooper is the only one i can think of. a mutator could be made easily that checks for troopers with a dispersion pistol in the defined 'weapon' and changes there dropwhenkilled to whatever you like. like a weapon powerup..
if your refering to bots or ai , I cant say but it likly just as simple. in ut it would be even easier i think since you can grab the pawnkilled to also detect bots..
it would break nothing , -- small possibility it could break somthing if the monster had a game important dropwhen killed inventory already set( drops a key etc) , but thats easily checked.
edit :
somthing like this
class dispdropper expands Mutator;
function bool CheckReplacement(Actor Other, out byte bSuperRelevant)
{
if (other != none && other.isa('SkaarjTrooper') )
{
if ( (SkaarjTrooper(other).myWeapon == class'UnrealShare.DispersionPistol') && ( SkaarjTrooper(other).dropwhenkilled == none) )
{
SkaarjTrooper(other).dropwhenkilled = class'UnrealShare.weaponpowerup';
}
}
return true;
}
edit m7/243:
not gonna reply since it not the point of this thread.
way like GE suggested:
check the dispersion pistol.owner and ignore the player is probably a better idea since it would also include custom scriptedpawn classes that used the dispersion pistol that are custom or unknown at build time as well.. it not the traditional way to do it tho.
I also added in the dwk check that was recommended by casey above that i skipped adding before since it's a example that no one would ever actually use....
Re: Dispersion Pistol powerup mod?
Posted: Tue Mar 06, 2012 10:11 pm
by GreatEmerald
Yea, I know, I just wonder if there is already something like that, since it would be pointless to create duplicate code. As for breaking things, I meant the game balance, as in you don't want to give players powerups, if they were never intended to be there in SP campaigns, since they could get an unfair advantage. But yes, of course you can check if it's possessed by a non-player pawn.
Re: Dispersion Pistol powerup mod?
Posted: Wed Mar 07, 2012 6:35 am
by []KAOS[]Casey
fully powered up DP is crap.
Either way, as you said add a check for..
if( SkaarjTrooper(other).dropwhenkilled != none) in case theres some item they already drop. You never know what it could break.
Re: Dispersion Pistol powerup mod?
Posted: Wed Mar 07, 2012 10:14 am
by GreatEmerald
fully powered up DP is crap.
True, but having the powerup appear more frequently in MP games would make some shots more colourful. It would also help the one that died with the DP in hand, since his enemy would have to spend a few seconds waiting for the DP animation to finish before he could do anything

It would probably be somewhat useful in areas with an Amplifier, too, although I don't recall many maps using it.