Difference between revisions of "Creating Custom Ammos"
From Obsidian Conflict Wiki
m |
m |
||
Line 19: | Line 19: | ||
"dmgtype" "1" | "dmgtype" "1" | ||
"tracer" "4" | "tracer" "4" | ||
− | "plrdmg" "10" //Damage done by players using this | + | "plrdmg" "10" //Damage done by players using this ammo. |
− | "npcdmg" "10" //Damage done by NPCs using this | + | "npcdmg" "10" //Damage done by NPCs using this ammo. |
"maxcarry" "10" | "maxcarry" "10" | ||
"grains" "200" // 1 grain = 64.79891 milligrams | "grains" "200" // 1 grain = 64.79891 milligrams |
Revision as of 22:06, 10 August 2008
Contents
Setting up your Mapadd script with Custom Ammos
In your map modify script
Modify { SpawnItems { "custom_ak47" "1" } CustomAmmo { "ak47" { "dmgtype" "1" "tracer" "4" "plrdmg" "10" //Damage done by players using this ammo. "npcdmg" "10" //Damage done by NPCs using this ammo. "maxcarry" "10" "grains" "200" // 1 grain = 64.79891 milligrams "ftpersec" "1225" } } }
- Damage Types
CRUSH = 0, BULLET = 1, SLASH = 2, BURN = 3, VEHICLE = 4, FALL = 5, BLAST = 6, CLUB = 7, SHOCK = 8, SONIC = 9, ENERGYBEAM = 10
- Tracer Types
NONE = 0, LINE = 1, RAIL = 2, BEAM = 3, LINE AND WHIZ = 4 Note: The Rail and Beam tracers arent setup correctly in code and as such tend to fail.
Setting up a custom ammo item in Hammer
- Work In Progress Section
Ingame you can give your ammo with item_custom.
Scripted Weapons using Custom Ammo
- Work In Progress Section