Crates Surprises

Greetings! We are one of the oldest mod sites on the Interwebs. Sign up and maximize your browsing experience.

  • Subscribe: Get notified of new submissions like this.
  • Say Thanks: Show your appreciation by sending BlankShot. points.
  • Post: Give BlankShot. your thoughts on this Tutorial.
  • Vote: Help BlankShot. win the Monthly Awards.
  • Rate: Give this Tutorial a rating out of 10.
  • Flag: Alert moderators and warn members of a problem with this Tutorial.
  • Watch: Get notified when this Tutorial is updated.
Mascot

Join the community!

Sign up

Already a Bananite? Login

Crate Surprises tutorial by Rebelmoon. __________________________________________ This is a simple basic tutorial to adding new crate surpises. Required tools: Text Editor & SDK Locations: data (in your mod folder), CnC3Xml XML Files Needed: GenericCrateSpawner.xml & UnitCrate.xml I prefer Notepad++ for my XML editing because it has syntax highlighting, tabbed interface, a built-in hex editor & other useful features. Plus it's free which is always a great feature. In this we'll be adding a Predator crate so you'll only need to add 2 new xml files to your mod. The 1st is the GenericCrateSpawner.xml found in the Neutral/Units folder. The next is the UnitCrate.xml found in your Neutral/Crates folder. Make copies of both in your Mod/Data folder. 1st we'll make the Predators crate info. Open the UntiCrate.xml and look for the following code ID under Game Object. Code id="UnitCrate" Change the ID to: Code id="UnitGDIPredatorCrate" Next go to the following code under Behaviors: Code id = "ModuleTag_CrateCollide" UnitCount="4" UnitType="GDIPitbull"> Change it to: Code id = "ModuleTag_CrateCollide" UnitCount="1" UnitType="GDIPredator"> If you don't want to know what type of crate it is ingame before grabbing it then change this line of code: Code NAME:UnitCrate To this: Code NAME:Crate Finally, save it and then rename it as UnitGDIPredatorCrate.xml Ok, that part is done. Next comes the GenericCrateSpawner.xml which tells the game what crates to spawn. This bit is simple and quick. Open and find this code under Behaviors: Code id="ModuleTag_SpawnCrateUpdate"> MoneyCrateMP VeterancyCrateMP HealCrateMP Just add your new crate name like this: Code id="ModuleTag_SpawnCrateUpdate"> MoneyCrateMP VeterancyCrateMP HealCrateMP UnitGDIPredatorCrate Save and you're done with that one. Lastly, open your mod.xml and add both the GenericCrateSpawner.xml & UnitGDIPredatorCrate.xml files to it and save. That's it. Just build and play. You will need to make a unit file for each unit you want added. And it's not just limited to units. Any number of things can be added, like exploding crates, etc, so play around with it and have fun. Cheers, Rebelmoon

Posts

Share

Shareable Image:
Share banner
HTML embed code:
BB embed code:
Markdown embed code:

More embeddable images

Bookmark and Share

Credits

Key Authors
RebelMoon
Unknown

Submitter

BlankShot. avatar
BlankShot. avatar Offline
Member Joined 10y
5,601 points Ranked 804th

BlankShot. avatar
BlankShot.

Creator
Send a Private Message to the submitter

Category

Details

Difficulty Level
Beginner Difficulty

Attributes

Miscellaneous
crates
Genre
Other/Misc

Stats

Posts
1
Views
2,779
Date Added
10y
Date Modified
6y

Scores

  • Not yet rated

More from Submitter

bcp.crwdcntrl.net tracking pixel