Follow-up Comment #1, bug #7053 (project wormux):
I agree. The current version try to get the current gun hole with the
weapon's sprite width (m_image->GetWidth()) and the position of the weapon
relative to the active character hand (position.dx, dy).
What we need is a way to localize the gun hole throught a new xml entry in
weapon.xml. What about this kind of entry :
<baseball>
<position origin="hand" x="0" y="-3" />
<gun_hole x="50" y="-3" />
<min_angle>-30</min_angle>
<max_angle>75</max_angle>
<nb_ammo>-1</nb_ammo>
<damage>25</damage>
<strength>20</strength>
<range>45</range>
</baseball>
If you want to get the gun fire effect always on (in order to debug) go to
the Weapon::Draw method (in weapon.cpp) and replace the following line :
if (m_last_fire_time + 100 > Time::GetInstance()->Read())
DrawWeaponFire();
by DrawWeaponFire();
_______________________________________________________
Reply to this item at:
<http://gna.org/bugs/?7053>
_______________________________________________
Message posté via/par Gna!
http://gna.org/
_______________________________________________
Wormux-gna mailing list
[email protected]
https://mail.gna.org/listinfo/wormux-gna