Back to the Vavoom Forum Archives


Forum

About overriding linespec classes

Thu, 30 Oct 2008 14:19:18

Crimson Wizard

If I want to override only a few of methods from some of the linespec classes, say a single method from Actor.FlagsAndAppearance, should I duplicate all its contents in custom progs?
Thu, 30 Oct 2008 16:32:00

Firebrand

I would just override the method in the custom game Actor class you have built (if any), if you haven't built it, then build it using that method <!-- s:) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":)" title="Smile" /><!-- s:) --> .
Fri, 31 Oct 2008 11:01:24

Crimson Wizard

[quote="Firebrand":1c4qng06]if you haven't built it, then build it using that method <!-- s:) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":)" title="Smile" /><!-- s:) --> . I wonder what this directive means?
Fri, 31 Oct 2008 15:10:17

Firebrand

[quote="Crimson Wizard":1n4mz7f1][quote="Firebrand":1n4mz7f1]if you haven't built it, then build it using that method <!-- s:) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":)" title="Smile" /><!-- s:) --> . I wonder what this directive means? What I mean is that you can create an Actor.KArena.vc (or something similar) and put those methods you want to override there <!-- s:) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":)" title="Smile" /><!-- s:) -->.
Fri, 31 Oct 2008 15:34:22

Crimson Wizard

Wrong term perhaps, I am speaking about substitution. There's Actor.FlagsAndAppearance, and there's, for example, SetReflective and UnsetReflective methods. I want to modify something there, so it substitute original ones in my cutom progs for all actors. So, questions are: 1. Should I put the substitutive functions to the file with SAME name as original. 2. If yes, should I duplicate all of original file's contents too.
Fri, 31 Oct 2008 18:19:20

Firebrand

1. Yes. 2. No, it's not necessary.
Sat, 01 Nov 2008 16:13:17

Janis Legzdinsh

You won't be able to replace them like that. Basically you have to replace the whole file with a modified one. I have an idea how to simplify this, but it needs some other changes first.

Back to the Vavoom Forum Archives