Code: Select all
//=============================================================================
// XMPEnergyAmmoPickup.uc
// For XMP Weapons Pack
//=============================================================================
// Created by GreatEmerald
// © 2008
//=============================================================================
class XMPEnergyAmmoPickup extends UTAmmoPickup;
#EXEC OBJ LOAD FILE=../Sounds/U2WeaponsA.uax
#EXEC OBJ LOAD FILE=../StaticMeshes/343M.usx
#EXEC OBJ LOAD FILE=../UTXMP/System/XMPWeapons.u
defaultproperties{
InventoryType=class'XMPWeapons.XMPEnergyRifleAmmo'
PickupMessage="You picked up a Shock Lance plasma pack."
PickupSound=Sound'U2WeaponsA.EnergyRifle.ER_PickupAmmo'
PickupForce="XMPEnergyAmmoPickup"
AmmoAmount=34
CollisionRadius=22.000000
CollisionHeight=10.000000
StaticMesh=StaticMesh'343M.Pickups.Ammo_ER'
DrawType=DT_StaticMesh
TransientSoundVolume=0.4
}Code: Select all
//=============================================================================
// XMPEnergyRiflePickup.uc
// For XMP Weapons Pack
//=============================================================================
// Created by GreatEmerald
// © 2008
//=============================================================================
class XMPEnergyRiflePickup extends UTWeaponPickup;
#EXEC OBJ LOAD FILE=../StaticMeshes/MalekythM.usx
#EXEC OBJ LOAD FILE=../Sounds/U2WeaponsA.uax
#EXEC OBJ LOAD FILE=../Textures/GLMWeaponsT.utx
#EXEC OBJ LOAD FILE=../UTXMP/System/XMPWeapons.u
defaultproperties
{
InventoryType=class'XMPWeapons.XMPEnergyRifle'
PickupMessage="You got a Shock Lance."
PickupSound=Sound'U2WeaponsA.EnergyRifle.ER_Pickup'
PickupForce="EnergyRiflePickup"
MaxDesireability=+0.63
Skins[0]=GLMWeaponsT.ER_Skin1
Skins[1]=GLMWeaponsT.ER_Skin2
StaticMesh=staticmesh'MalekythM.Pickups.ER_TP_W'
DrawType=DT_StaticMesh
DrawScale=0.55
Standup=(Y=0.25,Z=0.0)
}Now I suspect that the static mesh of both don't appear because of either:
a) the #EXEC directive is not working - the files are not found
b) the main XMPWeapons.XMPEnergyRifle class doesn't allow a pickup to be assigned or needs to be assigned to one
c) there are some other mistakes in the code.
So if it's A, how do you actually load the file? Where should it be located for the #EXEC to find it?
If it's B, then is there a way you can disallow pickup classes or do the inventory classes need assigning to the Pickup classes?
If it's C, anyone see any mistakes in this very simple piece of coding?


