mirror of
https://github.com/1dot13/source.git
synced 2026-09-02 14:36:06 +02:00
- Externalized Kingpin money sector and Hospital sector (by Buggler)
git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@6423 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
@@ -360,6 +360,15 @@ void IniGlobalGameSetting(lua_State *L)
|
||||
lua_pushinteger(L, gModSettings.iBrothelDoor3);
|
||||
lua_setglobal(L, "iniBROTHEL_DOOR_3");
|
||||
|
||||
lua_pushinteger(L, gModSettings.ubKingpinMoneySectorX);
|
||||
lua_setglobal(L, "iniKINGPIN_MONEY_SECTOR_X");
|
||||
|
||||
lua_pushinteger(L, gModSettings.ubKingpinMoneySectorY);
|
||||
lua_setglobal(L, "iniKINGPIN_MONEY_SECTOR_Y");
|
||||
|
||||
lua_pushinteger(L, gModSettings.ubKingpinMoneySectorZ);
|
||||
lua_setglobal(L, "iniKINGPIN_MONEY_SECTOR_Z");
|
||||
|
||||
//Gear Dropoff
|
||||
lua_pushinteger(L, gModSettings.ubOmertaDropOffX);
|
||||
lua_setglobal(L, "iniOMERTA_DROPOFF_X");
|
||||
@@ -376,6 +385,16 @@ void IniGlobalGameSetting(lua_State *L)
|
||||
//Alma
|
||||
lua_pushinteger(L, gModSettings.sRocketRifleGridNo);
|
||||
lua_setglobal(L, "iniROCKETRIFLE_POSITION");
|
||||
|
||||
//Hospital Sector
|
||||
lua_pushinteger(L, gModSettings.ubHospitalSectorX);
|
||||
lua_setglobal(L, "iniHOSPITAL_SECTOR_X");
|
||||
|
||||
lua_pushinteger(L, gModSettings.ubHospitalSectorY);
|
||||
lua_setglobal(L, "iniHOSPITAL_SECTOR_Y");
|
||||
|
||||
lua_pushinteger(L, gModSettings.ubHospitalSectorZ);
|
||||
lua_setglobal(L, "iniHOSPITAL_SECTOR_Z");
|
||||
|
||||
// -------------------------------
|
||||
// Other global variables
|
||||
|
||||
@@ -3,13 +3,13 @@
|
||||
|
||||
#include "Types.h"
|
||||
|
||||
#define KINGPIN_MONEY_SECTOR_X 5
|
||||
#define KINGPIN_MONEY_SECTOR_Y MAP_ROW_D
|
||||
#define KINGPIN_MONEY_SECTOR_Z 1
|
||||
#define KINGPIN_MONEY_SECTOR_X gModSettings.ubKingpinMoneySectorX //5
|
||||
#define KINGPIN_MONEY_SECTOR_Y gModSettings.ubKingpinMoneySectorY //MAP_ROW_D
|
||||
#define KINGPIN_MONEY_SECTOR_Z gModSettings.ubKingpinMoneySectorZ //1
|
||||
|
||||
#define HOSPITAL_SECTOR_X 8
|
||||
#define HOSPITAL_SECTOR_Y MAP_ROW_F
|
||||
#define HOSPITAL_SECTOR_Z 0
|
||||
#define HOSPITAL_SECTOR_X gModSettings.ubHospitalSectorX //8
|
||||
#define HOSPITAL_SECTOR_Y gModSettings.ubHospitalSectorY //MAP_ROW_F
|
||||
#define HOSPITAL_SECTOR_Z gModSettings.ubHospitalSectorZ //0
|
||||
|
||||
extern UINT8 gubCambriaMedicalObjects;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user