UE2 - UT2kX Custom Pickup Help

  • 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.

dirkmalta

New Member
Mar 25, 2010
19
0
0
Hi all,
Could someone kindly assist me in building custom pickups for UT2004 using Unreal Script. I've tried following TheHealer tutorial (http://wiki.beyondunreal.com/Legacy:TheHealer) however it seems that the code is incomplete as I am getting the following error when I compile the code:
C:\UT2004\TheHealer\Classes\TUTHealer.uc(57) : Error, Redefinition of 'function ConsumeAmmo' differs from original in Weapon
Compile aborted due to errors.
Failure - 1 error(s), 0 warning(s)​

My basic intention is to create an extension of Pickup class for how to create a pickup which is not directly related to only Weapon, Ammo, or Health but rather a tool which allows content to be created in similar manner as items used in RPGs, such as:
  • Map
  • Soda Can
  • Book
  • Shoes

It also important to assign each item to its own InventoryType.

Another great addition would be to assign unique models and meshes to each of the items.

The following links shows how Deus Ex would add a pickup item:
http://www.planetdeusex.com/tack/CreatingCustomPickups.html
The issue is that the tutorial extends Sodacan from Deus Ex, however this Sodacan is not available in Unreal Tournament 2004.

Regards,
dirkmalta
 

eliot

Member
Jul 12, 2005
39
0
6
The tutorial is based upon UT2003 code which differs slightly from that of UT2004; Change the function declaration to
Code:
simulated function bool ConsumeAmmo(int Mode, float load, optional bool bAmountNeededIsMax)
{
//code here
return true;
}