Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Renegade Discussions » Mod Forum » Renegade Map Rules Handler System
Renegade Map Rules Handler System [message #218008] Fri, 08 September 2006 06:24 Go to previous message
vloktboky is currently offline  vloktboky
Messages: 290
Registered: February 2003
Location: Kentucky, USA
Karma:
Recruit

This is a sneak peek at a new system I wrote this past night for C&C Renegade. I call it the Map Rules Handler System and it basically allows a server owner to completely redefine the game rules on a per-map basis by doing nothing but editing an XML file.

These XML files share the same name as the map name and are loaded automatically by the system when their corresponding map is being loaded by the server. Currently, a server owner has the ability to change the following with a Map Rules XML (MRXML) file:

* Completely redefine the Purchase Menu from cost to preset for the following: beacon, enlisted soldiers (free characters), soldiers, and vehicles.
* Ability to manually enable/disable any slot in the Purchase Menu.
* Ability to change the string ID and texture used to represent any slot in the Purchase Menu once this feature is available.
* Enable/Disable the following per team on map start: base power, team radar, ability to purchase characters, and ability to purchase vehicles.
* Easily redefine the following initial properties of any object in the game: max health, max armor, shield type, skin type, damage points, and death points.
* Easily enable/disable the use of any object in the game.


Here's an example of what a typical MRXML file may look like: http://www.black-cell.net/~vloktboky/Template_Map_Rules.xml

Naturally almost all of the functionality is being controlled through the numerous BHS function definitions written into the latest distribution of the Scripts DLL library. I have not released this code yet for the purpose of ease of implementation for the community's use. Upon receiving a reply from other sources, I'll decide whether to withhold the release of the code and allow other parties to implement the code through their distributions or release it AS IS.
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Cinematic Help
Next Topic: Tunnel Beacons
Goto Forum:
  


Current Time: Thu Dec 26 20:08:12 MST 2024

Total time taken to generate the page: 0.00902 seconds