Back to the Vavoom Forum Archives


Forum

A_Look modification

Thu, 30 Aug 2007 14:19:48

Crimson Wizard

Well, this one goes as a continuation of previous proposal: <!-- m --><a class="postlink" href="http://www.vavoom.heretichexen.com/forums/viewtopic.php?t=1161">http://www.vavoom.heretichexen.com/foru ... php?t=1161</a><!-- m --> Futhermore, I propose to substitute LookForPlayers call in A_Look by more generic LookForEnemies (which can be overriden in custom progs).
Thu, 30 Aug 2007 14:54:53

Firebrand

If you check the progs souce, you can see that there's both LookForPlayers and LookForMonsters methods, from combining and modifying these two, you can create a more generic functions, also, you can find A_Look inside the EntityEx class and create a new function for it <!-- s:) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":)" title="Smile" /><!-- s:) -->.
Thu, 30 Aug 2007 15:38:20

Crimson Wizard

Man, I know all that. And, ofcourse, I can do this. But I am thinking about convenience. A_Look method is final, that is - it cannot be overriden, thus one will had to substitute just all the A_Look function calls in all custom progs to his new function. Besides, I think it's not very good to fully copy contents of the method to a new custom method only changing a couple of function calls. (LookForPlayers to LookForEnemies). Well, it just a proposal.

Back to the Vavoom Forum Archives