UT2004
FIrst off this is my first attempt with unreal script although I have programed in C++ before.I've just watched the VTMs that came with UT2k4 about Unrealscript and made their concussion rifle. I understand how it works but I have been trying to be able to make it zoom. I tried to have the rifle inherit the zoom capabilties of other guns (such as the sniper rifle) through the extends command but I can't get it to work. Any help would be greatly appreciated. Listed below is all my code.
//=============================================
//ConcussionRifle
//This is your inventory class
//=============================================
class zoomrifle extends ShockRifle;
defaultproperties
{
ItemName="zoomrifleFire"
FireModeClass(0)=zoomriflefire
FiremodeClass(1)=zoomriflezoom
PickupClass=class'zoomriflePickup'
}
//=============================================
// ConcussionRiflePickup
//=============================================
class zoomriflePickup extends ShockRiflePickup;
defaultproperties
{
InventoryType=class'zoomrifle'
PickupMessage="You got the zoomRifle."
}
//=============================================
//Zoomrifle
//This is your fire class
//=============================================
class zoomrifleFire extends ShockBeamFire;
defaultproperties
{
Momentum=+1000000.0
DamageMin=0
DamageMax=0
}
Lastly this is what I'm trying to get the zoom out of but it does'nt seem to work, I guess if someone can point me to the correct direction that would be great.
//=============================================
//This supposeed to extend the zoom capabilty to the shock rifle
//=============================================
class zoomriflezoom extends SniperZoom;
defaultproperties
{
}
FIrst off this is my first attempt with unreal script although I have programed in C++ before.I've just watched the VTMs that came with UT2k4 about Unrealscript and made their concussion rifle. I understand how it works but I have been trying to be able to make it zoom. I tried to have the rifle inherit the zoom capabilties of other guns (such as the sniper rifle) through the extends command but I can't get it to work. Any help would be greatly appreciated. Listed below is all my code.
//=============================================
//ConcussionRifle
//This is your inventory class
//=============================================
class zoomrifle extends ShockRifle;
defaultproperties
{
ItemName="zoomrifleFire"
FireModeClass(0)=zoomriflefire
FiremodeClass(1)=zoomriflezoom
PickupClass=class'zoomriflePickup'
}
//=============================================
// ConcussionRiflePickup
//=============================================
class zoomriflePickup extends ShockRiflePickup;
defaultproperties
{
InventoryType=class'zoomrifle'
PickupMessage="You got the zoomRifle."
}
//=============================================
//Zoomrifle
//This is your fire class
//=============================================
class zoomrifleFire extends ShockBeamFire;
defaultproperties
{
Momentum=+1000000.0
DamageMin=0
DamageMax=0
}
Lastly this is what I'm trying to get the zoom out of but it does'nt seem to work, I guess if someone can point me to the correct direction that would be great.
//=============================================
//This supposeed to extend the zoom capabilty to the shock rifle
//=============================================
class zoomriflezoom extends SniperZoom;
defaultproperties
{
}
Comment