General > User modifications
Question for modding
cevaralien:
Hi, nice to stay on this forum. This is a great game!
I`m playing 2.4 on linux. I`m triyng to do a new clip for assault rifle (armour piercing). I wrote the research and weapon_human files but my clip doesn`t works. I don`t know what i`m do wrong.
I only copy and paste the "rs_weapon_assault_ammo" and rename "rs_weapon_assault_AP_ammo" on the RESEARCH file and i copy and paste the "item assault_ammo" with the name "item assault_AP_ammo" on the weapon_human file.
Can anyone help me?
Another question. Where is the .txt files? i want to do some work on it, but in don`t know where they are.
Thanks.
AntJam:
Bit difficult to say whats wrong without any files to check...try downloading my weapon mod http://ufoai.org/forum/index.php/topic,8001.0.html its for 2.5 but the file layout is identical
And look at the revolver entries in research_ajg.ufo (the 3rd, 4th and 5th tech entries) and revolver.ufo for weapon and weapon mod (ammo) set up. The revolver has 2 ammo types and as its on its own in the file its easier to see whats going on.
If you have copied and pasted from the original files it's probably a missed bracket or typo so carefully check everything.
Hope this helps a bit.
*Edit*
I just noticed you dont mention the new ammo model you MUST have a model and I seem to remember you can not just point it at an existing model. However you can copy and rename the normal clip .md2 file (say to assault_ap) and point the weapon model data to that file.
cevaralien:
Thanks Antjam.
I will see your mod. I do the work before using the same model of the assault clip and it works, but i trying to do again but it doesn`t work.
Well, i will follow your advice.
AntJam:
I made this in case your still having trouble. Once again its tested from 2.5 but should work. It adds ap ammo for assault rifle with 50 damage and heavy bullet weight plus a tech entry in civopedia and a duplicate ammo model. The text files are in the msgid folder by the way.
cevaralien:
Thanks!
Well, i saw and it`s very similar to my mod. I will post it
weapon_human.ufo
item assault_AP_ammo
{
name "_Assault Rifle Magazine"
model weapons/assault/assault_clip
type ammo
animationindex 0
shape "0 0 1 2"
center "0 0 0"
scale 1.25
price 100
size 3
is_primary true
dmgtype normal
weapon_mod assault
{
firedef
{
name "_Snap Shot"
skill assault
projtl bullet
impact bulletImpact
hitbody null
firesnd weapons/bullet-rifle-1x
impsnd impact/bullet-impact
bodysnd impact/bullet-bodyimpact
speed 3000
spread "1.2 1.2"
crouch 0.7
range 70
shots 1
ammo 1
time 8
damage "52 5"
dmgweight normal_medium
reaction true
}
firedef
{
name "_3-Round Burst"
skill assault
projtl bullet
impact bulletImpact
hitbody null
firesnd weapons/bullet-rifle-3x
impsnd impact/bullet-impact
bodysnd impact/bullet-bodyimpact
sndonce true
speed 3000
spread "1.6 1.6"
crouch 0.7
range 70
shots 3
ammo 3
delaybetweenshots 10
time 12
damage "52 5"
dmgweight normal_medium
reaction true
}
firedef
{
name "_Full-Auto"
skill assault
projtl bullet
impact bulletImpact
hitbody null
firesnd weapons/bullet-rifle-8x
impsnd impact/bullet-impact
bodysnd impact/bullet-bodyimpact
sndonce true
speed 3000
spread "2.1 2.1"
crouch 0.7
range 70
shots 8
ammo 8
delaybetweenshots 10
time 18
damage "52 5"
dmgweight normal_medium
}
firedef
{
name "_Aimed Shot"
skill assault
projtl bullet
impact bulletImpact
hitbody null
firesnd weapons/bullet-rifle-1x
impsnd impact/bullet-impact
bodysnd impact/bullet-bodyimpact
speed 3000
spread "1 1"
crouch 0.7
range 70
shots 1
ammo 1
time 14
damage "52 5"
dmgweight normal_medium
}
}
weapon_mod vhs
{
firedef
{
name "_Snap Shot"
skill assault
projtl bullet
impact bulletImpact
hitbody null
firesnd weapons/bullet-rifle-1x
impsnd impact/bullet-impact
bodysnd impact/bullet-bodyimpact
speed 3000
spread "1.0 1.0"
crouch 0.7
range 250
shots 1
ammo 1
time 8
damage "45 5"
dmgweight normal_medium
reaction true
}
firedef
{
name "_3-Round Burst"
skill assault
projtl bullet
impact bulletImpact
hitbody null
firesnd weapons/bullet-rifle-1x
impsnd impact/bullet-impact
bodysnd impact/bullet-bodyimpact
speed 3000
spread "1.2 1.2"
crouch 0.7
range 70
shots 3
ammo 3
delaybetweenshots 5
time 10
damage "45 5"
dmgweight normal_medium
reaction true
}
firedef
{
name "_Full-Auto"
skill assault
projtl bullet
impact bulletImpact
hitbody null
firesnd weapons/bullet-rifle-1x
impsnd impact/bullet-impact
bodysnd impact/bullet-bodyimpact
speed 3000
spread "1.8 1.8"
crouch 0.6
range 70
shots 6
ammo 8
delaybetweenshots 10
time 16
damage "45 5"
dmgweight normal_medium
}
firedef
{
name "_Aimed Shot"
skill assault
projtl bullet
impact bulletImpact
hitbody null
firesnd weapons/bullet-rifle-1x
impsnd impact/bullet-impact
bodysnd impact/bullet-bodyimpact
speed 3000
spread "0.75 0.75"
crouch 0.6
range 70
shots 1
ammo 1
time 12
damage "45 5"
dmgweight normal_medium
}
}
}
And research.ufo
tech rs_weapon_assault_AP_ammo
{
name "_Plasma And The Grenade Launcher"
type weapon
up_chapter equipment
description {
default "_grenl_plasma_ammo_txt"
}
pre_description {
default "_grenl_plasma_ammo_pre_txt"
}
mail_pre
{
from "_mail_from_paul_navarre"
to "_mail_to_base_commander"
// subject defined by "name"
icon icons/mail_tech
}
mail
{
from "_mail_from_paul_navarre"
to "_mail_to_base_commander"
// subject defined by "name"
icon icons/mail_tech
}
require_AND
{
tech rs_alien_body_armour
}
provides assault_AP_ammo
time 2500
producetime 12
}
Notice that i`m using the plasma grenade as a base for my mod (because i know that works) and the assault rifle magzine. I will use your mod for testing.
And another question, where is the .txt files? I don`t found them.
Navigation
[0] Message Index
[#] Next page
Go to full version