creatin similar ammo
  • I was checking the ammo definition for mason and I underestand the concept but would like to know how can I define several ammo types: like .44 caliber bullet, .50 caliber bullet, and so on. What XML tag is the name? Can it have spaces?
  • Which ammo type are you looking at, in which file?
  • I was looking at "arrow" definition in weapons.xml.
  • The arrow definition is quite experimental, and much too fine grained. If you wanted to build a combat system using guns, and wanted to mine it fine grained and simulationist enough to track the number of bullets each weapon has, the absolute finest detail it would be worth simulating would be to have a definition for an ammunition clip definition, with a parameter which defines the number of rounds it contains.


    <map>
    <map name="attributes">
    <map name="mass">
    <float name="default">0.5</float>
    <string name="visibility">public</string>
    </map>
    <map name="caliber">
    <float name="default">0.44</float>
    <string name="visibility">public</string>
    </map>
    <map name="count">
    <int name="default">16</int>
    <string name="visibility">public</string>
    </map>
    </map>
    <string name="id">clip</string>
    <string name="objtype">class</string>
    <list name="parents">
    <string>thing</string>
    </list>
    </map>


    Because the name property would depend on the caliber, and perhaps other parameters, it would not be included in the definition here, but would instead be set when objects using this definition are created.

    Do you follow so far?
  • Ok, I get some. I will experiment and ask again if I have some other doubt.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Sign In with Google Sign In with OpenID