This Group was created for people who love to create maps and missions on the GEM 2 Engine.

Forum Thread
  Posts  
Weapon .def Files (Groups : GEM 2 Editor Fan club : Forum : General Questions : Weapon .def Files) Locked
Thread Options
Sep 3 2013 Anchor

I've had a look around the DMS forums for an explanation of the .def files and what they do but not found anything so I thought I'd make this post here including what I know about the files and in the hopes that others could add to that knowledge.

Rifles wrote: {from "pattern bullet" ;Pattern reference, can also reference weapons directly
{tag "weapon rifle bullet to_hand"} ;Unknown
{filling "ammo rifle" 30} ;Ammo type and magazine capacity
{desc "NameText"} ;References either a line in desc.lng or you can enter a string directly. It's the name that appears in the game.
{Automatic} ;Makes the weapon automatic (that is, it fires so long as you're holding down the fire button)
{inventory
{size 4 2} ;How many squares it uses in the inventory (XY)
{link_bone "gun_back"} ;Bone it links to I guess
{weight 100} ;How many you can stack, now idea how it's actually calculated
}
{entity "mosin"} ;Entity reference (to the model in the resource\entity folder)
{recoveryTime 2.4} ;Rate of Fire
{rechargeTime 3} ;Reload time
{speed 380 } ;Speed of the bullet

{ProjectileDamage 5} ;Unknown
{ProjectileDamageClip 5} ;Unknown
{projectileDamageTable {30 5} {100 0}} ;Penetration over distance. First value is distance, second value is the penetration depth.
{projectileDamageThreshold 1.5} ;Unknown
{calibre 9.72} ;Unknown

{spreading 1} ;Unknown
{healthDamage 240} ;Actual damage to a person?
{burst ;Unsure what this *actually* does
{short 3 0.5}
{long 6 0.5}
}
{aimingTolerance 1} ;Unknown
{aimRange 50} ;"Accurate" Range (when it's "Green")
{maxRange 50} ;Maximum Range
("accuracy_automatic_rifle") ;The "accuracy" definition from small.firearms.accuracy
}

Edited by: Korba_MDB

Reply to thread
click to sign in and post

Only registered members can share their thoughts. So come on! Join the community today (totally free - or sign in with your social account on the right) and join in the conversation.