I'm having troubles doing something with weapon text files.
In the X5 mod it lets you use a smoke grenade as a handheld item. I want to shoot that out of a grenade, or at least have them same effect after the nade blows up (smokes for a minute or so)
thanks
Mod
Snuffles, in the .gun data files, which you find in your Equip folder, there is a critical line of code. An example of this is in the file gp25_for_groza.gun, which is in the mp1 folder. Towards the very end of the file, you see the line
<ProjectileFileName>40mmglgrenade.prj</ProjectileFileName>
This is the file that tells the game how to make the effect it does for the grenade. In this case, it is your standard 40mm exploding grenade. If you want to make a smoke grenade launcher, you'll have to find the .prj file that matches the smoke grenade. Then you insert the name of the smoke grenade projectile file in place of the frag grenade projectile, in the actual .gun file of the grenade launcher you want to use.
If you want to build the grenade launcher from scratch... that could take a little longer. If you aren't sure where to find the smoke grenade .prj file, look in the .kit file of a kit that you know has a smoke grenade secondary. You'll find the filename there.
<ProjectileFileName>40mmglgrenade.prj</ProjectileFileName>
This is the file that tells the game how to make the effect it does for the grenade. In this case, it is your standard 40mm exploding grenade. If you want to make a smoke grenade launcher, you'll have to find the .prj file that matches the smoke grenade. Then you insert the name of the smoke grenade projectile file in place of the frag grenade projectile, in the actual .gun file of the grenade launcher you want to use.
If you want to build the grenade launcher from scratch... that could take a little longer. If you aren't sure where to find the smoke grenade .prj file, look in the .kit file of a kit that you know has a smoke grenade secondary. You'll find the filename there.
-
Snuffles
-
Snuffles
And i have the effect for it but i want to change it from a item you lay on the ground like a demo charge to something that can be shot out of a gun.
It's like changeing an .itm file to a .prj // I want the item below shot from a grenade launcher
<HandHeldItemFile>
<VersionNumber>1.100000</VersionNumber>
<NameToken>WPN_M15</NameToken>
<ModelFileName>m15.qob</ModelFileName>
<SimModelFileName>vipsmokeClose.pob</SimModelFileName>
<Weight>0.390000</Weight>
<Type>3</Type>
<ExplosionDataVersion>1</ExplosionDataVersion>
<VisualExplosionType>0</VisualExplosionType>
<IsDirectional>FALSE</IsDirectional>
<DamageThroughWalls>0.000000</DamageThroughWalls>
<BlastRadius>0.000000</BlastRadius>
<CombatCoefficient>
<CombatCoefficientIndex>0</CombatCoefficientIndex>
<CombatCoefficientV0>0.000000</CombatCoefficientV0>
<CombatCoefficientV1>0.000000</CombatCoefficientV1>
<CombatCoefficientV2>0.000000</CombatCoefficientV2>
<CombatCoefficientK1>0.000000</CombatCoefficientK1>
<CombatCoefficientK2>0.000000</CombatCoefficientK2>
</CombatCoefficient>
</HandHeldItemFile>
It's like changeing an .itm file to a .prj // I want the item below shot from a grenade launcher
<HandHeldItemFile>
<VersionNumber>1.100000</VersionNumber>
<NameToken>WPN_M15</NameToken>
<ModelFileName>m15.qob</ModelFileName>
<SimModelFileName>vipsmokeClose.pob</SimModelFileName>
<Weight>0.390000</Weight>
<Type>3</Type>
<ExplosionDataVersion>1</ExplosionDataVersion>
<VisualExplosionType>0</VisualExplosionType>
<IsDirectional>FALSE</IsDirectional>
<DamageThroughWalls>0.000000</DamageThroughWalls>
<BlastRadius>0.000000</BlastRadius>
<CombatCoefficient>
<CombatCoefficientIndex>0</CombatCoefficientIndex>
<CombatCoefficientV0>0.000000</CombatCoefficientV0>
<CombatCoefficientV1>0.000000</CombatCoefficientV1>
<CombatCoefficientV2>0.000000</CombatCoefficientV2>
<CombatCoefficientK1>0.000000</CombatCoefficientK1>
<CombatCoefficientK2>0.000000</CombatCoefficientK2>
</CombatCoefficient>
</HandHeldItemFile>
You can try to change it from an .itm to a .prj, then, but SimModelFileName may not work (the game may not actually allow that line in .prj files). That's your biggest problem because that's the file that makes it a smoke.
And you will need to add <AirResistanceConstant> (look in the .prj file of the grenade you want your smoke grenade to mimic for this number), as well as <DelayTime> and <DamageThroughWalls>
Try this. Don't remove the SimModelFileName unless it doesn't work
And you will need to add <AirResistanceConstant> (look in the .prj file of the grenade you want your smoke grenade to mimic for this number), as well as <DelayTime> and <DamageThroughWalls>
Try this. Don't remove the SimModelFileName unless it doesn't work
Who is online
Users browsing this forum: No registered users and 8 guests