Create and use a custom mover in the editor?

Tutorials and discussions about Mapping - Introduce your own ones!
Post Reply
Helen
Novice
Posts: 28
Joined: Sat Dec 25, 2010 6:03 pm

Create and use a custom mover in the editor?

Post by Helen »

I know how to create/compile/use custom classes in the editor. It seems I can create an inheriting class from a brush, in particular the various movers. I have created and compiled GradualMoverOneWay, which inherits from GradualMover. Now, how can I tell the editor I want to use my new mover class when I add a brush?
Thanks.
User avatar
Aspide
Skilled
Posts: 191
Joined: Wed Jun 09, 2021 12:13 am

Re: Create and use a custom mover in the editor?

Post by Aspide »

Hello, you can make subclasses of Movers and use them in the editor however they must be subclases of MOVER so they appear when you right click the add mover brush icon. If they are subclasses of other actors (including subclasses of mover) they won't show up.
Somewhere in Nevada...
Helen
Novice
Posts: 28
Joined: Sat Dec 25, 2010 6:03 pm

Re: Create and use a custom mover in the editor?

Post by Helen »

Excellent, worked perfectly, thanks for that great nugget of info!
Buggie
Godlike
Posts: 2741
Joined: Sat Mar 21, 2020 5:32 am

Re: Create and use a custom mover in the editor?

Post by Buggie »

For subclassing suclassed Movers - you can use text hacks. Copy all movers in text editor, replace class name and paste back. This allow you inherit some code and not make copy of it. This has some advantages and disadvantages. One of it: code be actual. This mean if in new patch fixed some bug, your version too be fixed. Downside - some fixes can be not compatible with your code. Usually this not happen anyway.
Post Reply