mirror of
https://github.com/stevenhowes/CTheEscape.git
synced 2026-05-26 15:53:29 +01:00
Allow event actions to change overlay tiles
This commit is contained in:
Binary file not shown.
@@ -670,6 +670,8 @@ void game2_triggerevent(int id)
|
|||||||
ScheduledEvents[scheduleid].Event = EventActions[i].ActionValue;
|
ScheduledEvents[scheduleid].Event = EventActions[i].ActionValue;
|
||||||
ScheduledEvents[scheduleid].Ticks = tick + EventActions[i].ActionTarget;
|
ScheduledEvents[scheduleid].Ticks = tick + EventActions[i].ActionTarget;
|
||||||
}
|
}
|
||||||
|
else if(EventActions[i].Action == 5) // Change overlay tile sprite
|
||||||
|
fullmap[EventActions[i].ActionTarget + 10000] = EventActions[i].ActionValue;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -74,6 +74,17 @@
|
|||||||
$eventactions[] = array("Event"=>$inevent,"Action"=>0,"ActionValue"=>$csv[1],"ActionTarget"=>$csv[0]);
|
$eventactions[] = array("Event"=>$inevent,"Action"=>0,"ActionValue"=>$csv[1],"ActionTarget"=>$csv[0]);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
case "SetOverlayTile":
|
||||||
|
if($inevent < 0)
|
||||||
|
{
|
||||||
|
echo " Invalid outside event\n";
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
$csv = str_getcsv($split[1]);
|
||||||
|
$eventactions[] = array("Event"=>$inevent,"Action"=>5,"ActionValue"=>$csv[1],"ActionTarget"=>$csv[0]);
|
||||||
|
}
|
||||||
|
break;
|
||||||
case "ReArm":
|
case "ReArm":
|
||||||
if($inevent < 0)
|
if($inevent < 0)
|
||||||
{
|
{
|
||||||
|
|||||||
Binary file not shown.
+14
-14
@@ -22,43 +22,43 @@ Event("Brief")
|
|||||||
Sound(8,4)
|
Sound(8,4)
|
||||||
|
|
||||||
Event("SBBR-DOOROPEN")
|
Event("SBBR-DOOROPEN")
|
||||||
SetTile(713,31)
|
SetOverlayTile(713,31)
|
||||||
Sound(8,5)
|
Sound(8,5)
|
||||||
ReArm("SBBR-DOORCLOSE")
|
ReArm("SBBR-DOORCLOSE")
|
||||||
Event("SBBR-DOORCLOSE")
|
Event("SBBR-DOORCLOSE")
|
||||||
SetTile(713,29)
|
SetOverlayTile(713,29)
|
||||||
Sound(8,5)
|
Sound(8,5)
|
||||||
ReArm("SBBR-DOOROPEN")
|
ReArm("SBBR-DOOROPEN")
|
||||||
|
|
||||||
Event("SB-DOOROPEN")
|
Event("SB-DOOROPEN")
|
||||||
SetTile(1213,68)
|
SetOverlayTile(1213,68)
|
||||||
SetTile(1313,69)
|
SetOverlayTile(1313,69)
|
||||||
Sound(8,5)
|
Sound(8,5)
|
||||||
ReArm("SB-DOORCLOSE")
|
ReArm("SB-DOORCLOSE")
|
||||||
Event("SB-DOORCLOSE")
|
Event("SB-DOORCLOSE")
|
||||||
SetTile(1213,43)
|
SetOverlayTile(1213,43)
|
||||||
SetTile(1313,44)
|
SetOverlayTile(1313,44)
|
||||||
Sound(8,5)
|
Sound(8,5)
|
||||||
ReArm("SB-DOOROPEN")
|
ReArm("SB-DOOROPEN")
|
||||||
|
|
||||||
Event("CB1-DOOROPEN")
|
Event("CB1-DOOROPEN")
|
||||||
SetTile(2213,68)
|
SetOverlayTile(2213,68)
|
||||||
SetTile(2313,69)
|
SetOverlayTile(2313,69)
|
||||||
Sound(8,5)
|
Sound(8,5)
|
||||||
ReArm("CB1-DOORCLOSE")
|
ReArm("CB1-DOORCLOSE")
|
||||||
Event("CB1-DOORCLOSE")
|
Event("CB1-DOORCLOSE")
|
||||||
SetTile(2213,43)
|
SetOverlayTile(2213,43)
|
||||||
SetTile(2313,44)
|
SetOverlayTile(2313,44)
|
||||||
Sound(8,5)
|
Sound(8,5)
|
||||||
ReArm("CB1-DOOROPEN")
|
ReArm("CB1-DOOROPEN")
|
||||||
|
|
||||||
Event("CB2-DOOROPEN")
|
Event("CB2-DOOROPEN")
|
||||||
SetTile(3213,68)
|
SetOverlayTile(3213,68)
|
||||||
SetTile(3313,69)
|
SetOverlayTile(3313,69)
|
||||||
Sound(8,5)
|
Sound(8,5)
|
||||||
ReArm("CB2-DOORCLOSE")
|
ReArm("CB2-DOORCLOSE")
|
||||||
Event("CB2-DOORCLOSE")
|
Event("CB2-DOORCLOSE")
|
||||||
SetTile(3213,43)
|
SetOverlayTile(3213,43)
|
||||||
SetTile(3313,44)
|
SetOverlayTile(3313,44)
|
||||||
Sound(8,5)
|
Sound(8,5)
|
||||||
ReArm("CB2-DOOROPEN")
|
ReArm("CB2-DOOROPEN")
|
||||||
|
|||||||
Reference in New Issue
Block a user