UE2 - UT2kX Troubles with a small mutator

  • Two Factor Authentication is now available on BeyondUnreal Forums. To configure it, visit your Profile and look for the "Two Step Verification" option on the left side. We can send codes via email (may be slower) or you can set up any TOTP Authenticator app on your phone (Authy, Google Authenticator, etc) to deliver codes. It is highly recommended that you configure this to keep your account safe.

Parabola

New Member
Sep 16, 2010
2
0
0
I haven't been coding long so, I'm pretty confused as to what's going on here.

I'm trying to figure out what is going on with the mutator. I was following this wiki tutorial on how to change vehicle weapons, and went to compile with Umake.

here's the errors it spat out:

ClassProperty Onslaught.ONSVehicle.DriverWeaponStruct.WeaponClass: unresolved reference to 'class'Onslaught.ONSAttackCraftMissile',WeaponBone=PlasmaGunAttachment)'
DriverWeapons::ImportText failed in: (WeaponClass=class'Onslaught.ONSAttackCraftMissile',WeaponBone=PlasmaGunAttachment)

and the code:

Code:
DriverWeapons(0)=(WeaponClass=class'Onslaught.ONSAttackCraftMissile',WeaponBone=PlasmaGunAttachment);
 

meowcat

take a chance
Jun 7, 2001
803
3
18
In your .ini file (UT2k4.ini, or make.ini if using UMake.exe) is Onslaught listed in the EditPackages section? Also, is that code bit you posted from your vehicle classes default properties?

[EDIT] Nevermind, You can't use ONSAttackCraftMissile as the weapon class since it is a projectile subclass, not a ONSWeapon subclass. You would have to try to use ONSAttackCraftGun instead, or just code a suitable subclass that fires the ONSAttackCraftMissile.
 
Last edited:

Parabola

New Member
Sep 16, 2010
2
0
0
hey, thank you for the quick reply. I'm just disappointed that the tutorial never mentioned anything about that.
 

Wormbo

Administrator
Staff member
Jun 4, 2001
5,913
36
48
Germany
www.koehler-homepage.de
The tutorial author probably assumed that you knew the difference between a weapon and a projectile. Just think about it: You can pull the trigger of a gun to fire a bullet, but bullets don't have triggers to pull, so you can't really use them as a weapon. They are only useful if fired from a gun.