Back to the Vavoom Forum Archives


Forum

Funny Vavoom bugs

Wed, 04 Mar 2009 16:44:58

Crimson Wizard

What about sharing funny bugs found either in Vavoom or in mods? <!-- s:) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":)" title="Smile" /><!-- s:) --> I already have reported one bug which made me smile: <!-- l --><a class="postlink-local" href="http://vavoom-engine.com/forums/viewtopic.php?f=1&t=1507">viewtopic.php?f=1&t=1507</a><!-- l --> Now I want to tell about one silly bug I made myself. Was not much a problem really, but I liked the results <!-- s:) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":)" title="Smile" /><!-- s:) --> In Scattered Evil game (Hexen based TC) we are making player has a weapons belt, where he put a limited number of weapons from his inventory for quick access. From the point of view of code this means extra references to weapon objects. I was experimenting with some conditions when player should drop his readied weapon (well, let's say, because he is scared <!-- s:twisted: --><img src="{SMILIES_PATH}/icon_twisted.gif" alt=":twisted:" title="Twisted Evil" /><!-- s:twisted: --> ), and saw some strange behavior: although weapon was dropped, player still could select it and use it. I found rather soon that it is because I forgot to remove a duplicate reference from his weapons belt. It appeared that player just selected and used a weapon he did not own already, and that could lie hungred meters away from him. Such a sort of telekinesis, or rather phantom weapon <!-- s:yummy: --><img src="{SMILIES_PATH}/yummy.gif" alt=":yummy:" title="Yummy" /><!-- s:yummy: --> <!-- s:plasma: --><img src="{SMILIES_PATH}/plasma.gif" alt=":plasma:" title="Plasma Gun" /><!-- s:plasma: -->

Back to the Vavoom Forum Archives