Here you can view your subscribed threads, work with private messages and edit your profile and preferences Registration is free! Calendar Find other members Frequently Asked Questions Search Home

Go Back   BeyondUnreal Forums > Mods > Infiltration > Infiltration Development

Reply
 
Thread Tools Display Modes
Old 28th Dec 2003, 05:17 PM   #1
Beppo
Infiltration Lead-Programmer
 
Beppo's Avatar
 
Join Date: Jul. 29th, 1999
Location: Aachen, Germany
Posts: 2,283
Exclamation How to - new INF 2.9 Weapons, Ammo aso

Thought that this would be of interest for some others here too...

Quote:
Originally Posted by MP_Duke
Is there something special you included in the code to make the additions of weapons "easier"? Can I make a weapon mutator that if activated displays the new weapon in the loadout menu?
Check out the INF_Mutators package. The INFc_Loadout mutator gives the right 'hooks' to jump in at the places needed and the UTWeapons mutator shows you how to use the needed objects then.

Cause your new weapon and ammo classes are unknown to the system you have to give some infos and have to define some item strings that should define your weapon and ammo within the loadout strings.
Check out INFc_LoadoutConfig and the already used ItemIDs to select a unique one for your weapon and ammo classes. Ammo is defined by a leading '*' and attachments by a leading '#'. If weapons work additive on pickup like frag grenades do (they are weapons that count as ammo if picked up and one already in your loadout) then they need a leading '+'.

Then you need so called LoadoutItemInfo classes that define the weapon and ammo a bit more. Check out Info->INFc_LoadoutItemInfo ... then the two examples for the UT8Ball called INFm_LoadoutItemInfo_UT8Ball and INFm_LoadoutItemInfo_Ammo_UT8Ball.

Finally check out the INFc_Weapon->UT8Ball class cause it includes some comments on how to setup the HUD icon and weapon mode descriptions.

To get the stuff displayed within the loadout menu you simply need a proper int file... check out INF_Mutators.int. At the end of this file you can find the LoadoutItem descriptions needed.
The mutator is needed to recognize the new items in-game. So you can setup the loadouts directly with the INT file present but you need the mutator to be active to let the new weapons be recognized as valid additions while playing.

This here is not like a perfect description but should give you a good start.

Beppo
__________________
Beppo is offline   Reply With Quote
Old 28th Dec 2003, 06:05 PM   #2
Keganator
White as Snow Moderator
 
Keganator's Avatar
 
Join Date: Jun. 19th, 2001
Location: PR's Barracks
Posts: 5,261
*stickied*
__________________

--|| Sluggy Freelance || The Infiltration Forum Guidelines || Kegnet || Clan Phoenix Rising ||--
PsychoMoogieBagpuss: "...we are implementing an updated [forum] policy."
ZenPirate: "I suggested that we not only ban [offenders], but also ban the forumer next to them."
Arethusa: "So you're (at least largely) a diest?" NTKB: "No im a logical thinking christian"
Keganator is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 05:00 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.

Copyright ©1998 - 2012, BeyondUnreal, Inc.
Privacy Policy | Terms of Use
Bandwidth provided by AtomicGamer