Thanks for setting me on the right track @Warped Polygon. I just recently discovered the Sega Model 2 Emulator, since Mame falls short on the model 2. Two of my son's favorite Sega Model 2 games were House of the Dead and Dynamite Cop. I wanted to get House of the Dead working with my AimTrak and struggled with some solutions for reloading off screen. As a take on your HOTD LUA script and for more authentic game play, I tied reloading (and health) to the AimTrak buttons 2 and 3. For anyone interested, here is the modified LUA script...
require("model2")
function Init()
end
function Frame()
Model2_SetWideScreen(1)
Model2_SetStretchALow(1)
Model2_SetStretchBLow(1)
Model2_SetStretchAHigh(1)
Model2_SetStretchBHigh(1)
Evaluate_Inputs();
end
function health_1p_cheat_f(value)
I960_WriteWord(RAMBASE+0x1EC10,5); -- 1P 5 health
end
function ammo_1p_cheat_f(value)
I960_WriteWord(RAMBASE+0x1EC41,6); -- 1P 6 ammo
end
function Evaluate_Inputs()
if Input_IsKeyPressed(JOY1+JOY_BUTTON2) == 1 then
I960_WriteWord(RAMBASE+0x1EC41,6); -- 1P 6 ammo
end
if Input_IsKeyPressed(JOY1+JOY_BUTTON3) == 1 then
I960_WriteWord(RAMBASE+0x1EC10,5); -- 1P 5 health
end
end
Options =
{
health_1p_cheat={name="1P Infinite Health",values={"Off","On"},runfunc=health_1p_cheat_f},
ammo_1p_cheat={name="1P Infinite Ammo",values={"Off","On"},runfunc=ammo_1p_cheat_f}
}
Sega Model 2 Emulator | EVERYTHING Pre Configured inc Controls. For PC, Controller, Mouse & Light guns. Test Menu's Configured. Analogue Inputs Calibrated. Free Play. All Games in English. 2 Player Mouse Support. No Screen Flash
in Sega Model 2
Posted
Thanks for setting me on the right track @Warped Polygon. I just recently discovered the Sega Model 2 Emulator, since Mame falls short on the model 2. Two of my son's favorite Sega Model 2 games were House of the Dead and Dynamite Cop. I wanted to get House of the Dead working with my AimTrak and struggled with some solutions for reloading off screen. As a take on your HOTD LUA script and for more authentic game play, I tied reloading (and health) to the AimTrak buttons 2 and 3. For anyone interested, here is the modified LUA script...
require("model2") function Init() end function Frame() Model2_SetWideScreen(1) Model2_SetStretchALow(1) Model2_SetStretchBLow(1) Model2_SetStretchAHigh(1) Model2_SetStretchBHigh(1) Evaluate_Inputs(); end function health_1p_cheat_f(value) I960_WriteWord(RAMBASE+0x1EC10,5); -- 1P 5 health end function ammo_1p_cheat_f(value) I960_WriteWord(RAMBASE+0x1EC41,6); -- 1P 6 ammo end function Evaluate_Inputs() if Input_IsKeyPressed(JOY1+JOY_BUTTON2) == 1 then I960_WriteWord(RAMBASE+0x1EC41,6); -- 1P 6 ammo end if Input_IsKeyPressed(JOY1+JOY_BUTTON3) == 1 then I960_WriteWord(RAMBASE+0x1EC10,5); -- 1P 5 health end end Options = { health_1p_cheat={name="1P Infinite Health",values={"Off","On"},runfunc=health_1p_cheat_f}, ammo_1p_cheat={name="1P Infinite Ammo",values={"Off","On"},runfunc=ammo_1p_cheat_f} }