How to figure out effect of "GVAR_CAR_BLOWER"?

PinkEraser44

First time out of the vault
How do we figure out the effect of GVAR variables that are not referenced in script files?

For example, scratch.ssl sets "GVAR_CAR_BLOWER" to 1 if you pay for NCR Ratch's car upgrade.

Code:
procedure timed_event_p_proc begin
   if (fixed_param == RATCH_FIX_TIMER) then begin
      if ((game_time - local_var(LVAR_Repair_Time)) > (ONE_GAME_HOUR * 6)) then begin
         set_local_var(LVAR_Ratch_Parts, RATCHDONEFIX);
         set_global_var(GVAR_CAR_BLOWER, 1);
         //Modify car here to have the Blower.
      end else
         add_timer_event(self_obj, game_ticks(60), RATCH_FIX_TIMER);
   end
end

However the code never says what "GVAR_CAR_BLOWER" does.

The only only location that GVAR is mentioned (that I could find) was in vault13.gam and global.h but that didn't say anything other than the GVAR existed.

Thanks!
 
It's a hardcoded engine variable. The game will do its own thing depending on how the variable is set, it's not used in other ways in script.
 
The GVAR is checked in the engine when handling world map travel.
The base "travel speed" (the process that moves the player for a certain distance on the world map) by the car is +3 to travelling on foot, having GVAR_CAR_BLOWER set +1 more, GVAR_NEW_RENO_CAR_UPGRADE +1 more, GVAR_NEW_RENO_SUPER_CAR +3 more.
 
Thank you both so much for explaining!

Is there some sort of game engine dump somewhere online so I could to try to look through the code like NovaRain just did. Or is it all written in assembly language and that's why I can't find it online?
 
Back
Top