VStanced/mods
Submit a mod
Mods Guides Forum Submit a mod Log in Register

HeadlightAdjust & HeadlightController Java scripts (2018 version)

HAH Screenshot coming soon · Street Legal Racing

Put these in partsscriptsbodypartsrc. If you want to use these for your own projects, please try and make a subclass of each type that “extends” the classes used here, instead of just copying and pasting the code.

This is an update to the version originally distributed in .class form with the Fiero. Because I reworked the animation code, this will probably mean that some old mods might stop working (but shouldn’t crash).

As a compatibility patch for older mods, you can insert this line into the top of the updatelightslotpos() method:

anim_ori = new Ypr(0, current_pos_rads, 0);

Download the current version here or from the sidebar.

If for whatever reason you need the source code for the old version, it’s available here.

Garage talk

No comments yet

Leave a comment

Members can comment. Log in or create an account.