Hi guys,
Sorry I havn't been around in a while. The last 4 months were loaded with outside world crap. Lots of projects put on hold, etc...
But now, I've found myself again and I'm trying to get some projects finished and blah, blah... you know the story.
Anyway, I DL'ed the ECE pack and got to messin around with the SPMA. I like the concept of the MIRV, but for crying out loud, it only releases 5 warheads!! I have been able to kill only 1 bot with the damn thing!!
So i'm trying to make a quickie mutator to increase the payload, but I'm having trouble implementing. At first, I tried to simply create an entire new class (cut/paste of course), but for some reason, the camera won't follow the shell. Then I got the brilliant idea of simply replacing the ONSMortarShell class with my beefed up version, but for some reason (actually, the reason is I don't understand exactly how to do it) I can't get the darn thing to compile. Here is the code, I think you'll get my idea after looking at it
Please keep in mind that I'm not really a well versed UScripter (though I've decided to work on that)
I'm simply trying to change the projectile class for the ONSArtilleryCannon, but I can't seem to access that property.
Any tips?
Thanks!
Sorry I havn't been around in a while. The last 4 months were loaded with outside world crap. Lots of projects put on hold, etc...
But now, I've found myself again and I'm trying to get some projects finished and blah, blah... you know the story.
Anyway, I DL'ed the ECE pack and got to messin around with the SPMA. I like the concept of the MIRV, but for crying out loud, it only releases 5 warheads!! I have been able to kill only 1 bot with the damn thing!!
So i'm trying to make a quickie mutator to increase the payload, but I'm having trouble implementing. At first, I tried to simply create an entire new class (cut/paste of course), but for some reason, the camera won't follow the shell. Then I got the brilliant idea of simply replacing the ONSMortarShell class with my beefed up version, but for some reason (actually, the reason is I don't understand exactly how to do it) I can't get the darn thing to compile. Here is the code, I think you'll get my idea after looking at it
Code:
function PostBeginPlay()
{
local ONSArtillery artillery;
MyProjectile = class<Projectile>( DynamicLoadObject("DNMutSPMA.DNONSMortalShell",class'class') );
if(MyProjectile != None)
{
foreach AllActors( class 'ONSArtillery', artillery)
{
artillery.DriverWeapons.ProjectileClass = MyProjectile;
}
}
super.PostBeginPlay();
}
Please keep in mind that I'm not really a well versed UScripter (though I've decided to work on that)
I'm simply trying to change the projectile class for the ONSArtilleryCannon, but I can't seem to access that property.
Any tips?
Thanks!