how to stop the sha...
 
Notifications
Clear all

how to stop the shakeit when the pedal is released

7 Posts
3 Users
1 Reactions
1,644 Views
(@monotor)
Active Member
Joined: 5 years ago
Posts: 9
Topic starter  

Hi all,

it is possible to stop every effects of the shakeit if i release the pedal?

Note: i have 1 shake for brake and 1 for accelerator.

When i release a pedal i want to stop the shake in order to avoid vibration noise really annoying.

I have seen the mute but it mute all shake and it can be triggered only by a button.

I have seen even that only some effects like "whells slip" has the trigger levels but not in the others.

Thanks for support.

 


   
Quote
(@admin5435)
Prominent Member Admin
Joined: 7 years ago
Posts: 736
 

Hi !

These options already exists in the effects useful for pedals :  it can be implicitly (abs/TC which will only trigger when braking or heavily accelerating) or explicitly (for slip or lock which shows dedicated options about it). All the other effects are targeting more general vibration motors use (not specifically for pedals) and can't be conditionally disabled. Obviously if I get more requests about such feature I will look to add it.


   
ReplyQuote
(@monotor)
Active Member
Joined: 5 years ago
Posts: 9
Topic starter  

the one without controls is the "speed", I leave it active because it gives me a sense of movement and speed, except that it cannot be deactivated if I remove the foot, a thersold could be useful as for the slip, otherwise I would not know.

As first stupid solution, time ago i have introduced a physical inverted microswictch on the pedal, when i remove the foot from the pedal the switch power off the motor.. but it broke right away...

Thanks


   
ReplyQuote
(@romainrob)
Honorable Member
Joined: 5 years ago
Posts: 530
 

Hi. You should be able to achieve this with a custom effect made from these properties:
DataCorePlugin.GameData.SpeedKmh
DataCorePlugin.GameData.MaxSpeedKmh
DataCorePlugin.GameData.Throttle


   
ReplyQuote
(@monotor)
Active Member
Joined: 5 years ago
Posts: 9
Topic starter  

I don't know how to turn the properties into the custom effect,

the only place seems to me where you can insert the "set formula", i attach the custom effect pics, it is the right place?

Where could i find an example?

Thanks.


   
ReplyQuote
(@romainrob)
Honorable Member
Joined: 5 years ago
Posts: 530
 

@monotor That's right.
Try this formula:
if(([Throttle]>10), [SpeedKmh]/max(150,[MaxSpeedKmh])*100, 0)

This should, if the throttle input is more the 10%, output the current speed % of the max speed.
With a default max speed of 150kph (until you go faster), to avoid the effect maxing out at low speed during the first acceleration (and dividing by 0 when the max speed is unknown)

You can set this as your left front formula.
And set the set to mono to send the FL output to all 4 channels.


   
ReplyQuote
(@monotor)
Active Member
Joined: 5 years ago
Posts: 9
Topic starter  

I tried it and it works perfect! 🍾 
thanks for the support,
I also learned how custom effects work.
bye


   
Romainrob reacted
ReplyQuote
Share: