Hi guys.
I need a modified version of the Super Shock Rifle: basically, I just want to make the alternate fire to be blue instead of red.
Is there a way to do this without using custom textures?
Vankuss wrote:I searched through the forum and found nothing, lol.
Thanks

class MySuperShockRifle expands SuperShockRifle;
var() class<ShockBeam> ShockBeamClass[2];
enum E_ShotType
{
ST_Fire,
ST_AltFire
};
var E_ShotType shotType;
function Fire(float Value)
{
shotType = ST_Fire;
Super.Fire(Value);
}
function AltFire(float Value)
{
shotType = ST_AltFire;
Super.AltFire(Value);
}
function SpawnEffect(vector HitLocation, vector SmokeLocation)
{
local SuperShockBeam Smoke,shock;
local Vector DVector;
local int NumPoints;
local rotator SmokeRotation;
DVector = HitLocation - SmokeLocation;
NumPoints = VSize(DVector)/135.0;
if ( NumPoints < 1 )
return;
SmokeRotation = rotator(DVector);
SmokeRotation.roll = Rand(65535);
Smoke = Spawn(ShockBeamClass[shotType],,,SmokeLocation,SmokeRotation);
Smoke.MoveAmount = DVector/NumPoints;
Smoke.NumPuffs = NumPoints - 1;
}
defaultproperties
{
ShockBeamClass(0)=Class'SuperShockBeam'
ShockBeamClass(1)=Class'ShockBeam'
}

Users browsing this forum: Google [Bot] and 0 guests