OpenXcom Forum

Modding => Help => Topic started by: Hyper2Snyper on December 24, 2017, 05:36:52 am

Title: laser incineration glitch
Post by: Hyper2Snyper on December 24, 2017, 05:36:52 am
I am trying to make a small laser pistol that has a clip since it takes up a 1x1 area. but when I fire it it makes it look like an incendiary.
Title: Re: laser incineration glitch
Post by: ohartenstein23 on December 24, 2017, 05:42:35 am
You need to give the ammunition a hitAnimation - it's just pulling a few of sprites from HIT.PCK (or whatever the .PCK that contains bullet hits is).  If you want it to look like a laser hit, checkout the ruleset example for the laser pistol, and put things like the hitSound/hitAnimation/power on the clip item.
Title: Re: laser incineration glitch
Post by: Hyper2Snyper on December 24, 2017, 05:43:20 am
oh so I cant have the hit animation on the weapon?
Title: Re: laser incineration glitch
Post by: ohartenstein23 on December 24, 2017, 07:50:24 am
You can, if the weapon uses itself as ammunition - this is the case for the standard laser weapons.  Otherwise the hitAnimation on the clip is used instead.