Skip to content

Commit

Permalink
Add haptic effects for vehicles
Browse files Browse the repository at this point in the history
  • Loading branch information
fholger committed Sep 5, 2023
1 parent 567b07e commit 8d7e27c
Show file tree
Hide file tree
Showing 8 changed files with 6,587 additions and 1 deletion.
2 changes: 2 additions & 0 deletions FCData/scripts/Default/Entities/Player/BasicPlayer.lua
Original file line number Diff line number Diff line change
Expand Up @@ -589,6 +589,8 @@ function BasicPlayer:Client_OnInit()
Game:RegisterBHapticsEffect("heartbeat", "bhaptics/vest/Heartbeat.tact");
Game:RegisterBHapticsEffect("swimming", "bhaptics/vest/Swimming.tact");
Game:RegisterBHapticsEffect("vehicle_rumble", "bhaptics/vest/VehicleRumble.tact");
Game:CreateHapticsEffectFlat("vehicle_engine", 1.0, 0.5, 0.3, 0.2);
Game:RegisterBHapticsEffect("vehicle_rumble", "bhaptics/vest/VehicleRumble.tact");

self:RegisterStates();

Expand Down
Loading

0 comments on commit 8d7e27c

Please sign in to comment.