-
Notifications
You must be signed in to change notification settings - Fork 178
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added EV_TRUCK_MANUAL_CLUTCH_MODIFIER_25/50
#3177
base: master
Are you sure you want to change the base?
Conversation
To go with accel/brake modifiers. Suggested by Gibbzy on Discord: https://discord.com/channels/136544456244461568/189904947649708032/1280998672246771753
The gear-vector prep code was moved from ActorSpawner.cpp to EngineSim.cpp EngineSim.h: - added doxy comments about 'engine' keyword args - added `getDiffRatio()` getter so `m_diff_ratio` is no longer a dead attr - will be bound to AngelScript later
This touches many files but it's just find&replace of the renamed functions in EngineSim.h This is a preparation for AngelScript bindings which must all be `camelCase()`.
Deleted `EngineSim::shiftmodes`, using global `SimGearboxMode` (see Application.h) for everything. The enums are the same except for syntax.
EngineSim class upgraded to RefCountingObject - that means all codebase uses EngineSimPtr now. Ambiguous func `EngineSim::getEngineTorque()` renamed to `getCurEngineTorque()` Func `EngineSim::getShiftingToGear()` renamed to `getShifTargetGear()` EngineSim.h - some more doxygen doc shuffling.
Didn't work as intended, commentary and research: https://discord.com/channels/136544456244461568/189904947649708032/1282776986107773010 I dusted off some AngelScript-engine binding code (1 year old) and created a simple engine diag script. Currently it only shows engine/engoption settings and current engine state as seen by the game. To run it, open in-game console (hotkey ~ or topmenu/Tools/Console) and say |
To go with accel/brake modifiers. Suggested by Gibbzy on Discord: https://discord.com/channels/136544456244461568/189904947649708032/1280998672246771753
UPDATE: Turns out this needs more research - the modifiers work but they don't have the desired effect, see Discussion: https://discord.com/channels/136544456244461568/189904947649708032/1282776986107773010. To research further, I've dusted off my Engine-AngelScript bindings (made a year ago and never merged) and created an engine diagnostic script 📜 'example_game_engineDiag.as'.