Skip to content

Commit

Permalink
Comments remove
Browse files Browse the repository at this point in the history
  • Loading branch information
chrystianfarias committed Jan 16, 2022
1 parent 31a4f59 commit 8aeda52
Showing 1 changed file with 6 additions and 12 deletions.
18 changes: 6 additions & 12 deletions GTAFmod/GTAFmod.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ class GTAFmod {
//CTorqueCurve->Draw(CRect(100, 100, 500, 300), 2);

lg.open("GTAFmod.log", std::fstream::out | std::fstream::trunc);
//Events::gameProcessEvent.Add(UpdateFmod);

Events::initGameEvent.after.Add(InitializeFmod);
Events::gameProcessEvent.before += [](){
//CTorqueCurve->Render();
Expand Down Expand Up @@ -232,9 +232,9 @@ class GTAFmod {
if (fRPM < targetRpm)
{
fRPM += (CTimer::ms_fTimeStep) * 50;
if (fRPM > torqueCurve.maxX)
if (fRPM > torqueCurve.maxX + 400)
{
vehicle->m_fHealth -= 50.0;
vehicle->m_fHealth -= 80.0;
}
}
else
Expand Down Expand Up @@ -298,8 +298,7 @@ class GTAFmod {
PrevGear();
}
}
//CMessages::AddMessageJumpQWithNumber(new char[] {"TORQUE ~1~"}, 3000, 0, cv.Evaluate(fRPM) , nTargetGear, speed, fClutch, gasPedal, 0, false);
char sGear;
char sGear;
if (nGear > 0)
{
sGear = nGear;
Expand All @@ -320,14 +319,9 @@ class GTAFmod {
sGear = 'N';
torqueBias = 0;
}
//torqueBias *= relation[nGear];
//torqueBias = ((relation[nGear-1] - speed) / relation[nGear-1]);

vehicle->m_pHandlingData->m_transmissionData.m_fEngineAcceleration = (torqueBias * (1 - fClutch)) * gasPedal * (vehicle->m_fHealth / 1000);
//vehicle->m_pHandlingData->m_fTractionMultiplier = torqueBias > 0.1 ? 0.5 : 1;


CMessages::AddMessageJumpQWithNumber(new char[] {"fRPM ~1~ sGear ~1~ TRPM ~1~"}, 3000, 0, fRPM, sGear, torqueBias * 1000, 0, 0, 0, false);

CMessages::AddMessageJumpQWithNumber(new char[] {"RPM ~1~ Gear ~1~"}, 3000, 0, fRPM, sGear, torqueBias * 1000, 0, 0, 0, false);

float soundRpm = fRPM;
if (soundRpm < 800)
Expand Down

0 comments on commit 8aeda52

Please sign in to comment.