From 0a3e9ec5378b99c8384c9bd71834dda478e9b59c Mon Sep 17 00:00:00 2001 From: Matei Date: Mon, 2 Jan 2006 03:07:29 +0000 Subject: [PATCH] - Added pause game functionality. - Removed CDamageType from the engine - damage is now handled only within the entity script (easier to mod/modify). This was SVN commit r3325. --- binaries/data/config/system.cfg | 1 + .../entities/template_entity_full.xml | 6 +- .../entities/template_entity_script.js | 58 ++++++++++++------- .../mods/official/entities/template_unit.xml | 4 +- .../data/mods/official/gui/test/4_session.xml | 13 ++++- source/main.cpp | 7 +-- source/ps/Game.cpp | 8 ++- source/ps/Game.h | 2 + source/ps/GameSetup/GameSetup.cpp | 2 +- source/ps/Hotkey.cpp | 3 +- source/ps/Hotkey.h | 2 +- source/scripting/ScriptGlue.cpp | 25 ++++++++ source/simulation/Entity.cpp | 10 ++-- source/simulation/Entity.h | 4 +- source/simulation/EntityManager.cpp | 15 +---- source/simulation/EntityStateProcessing.cpp | 10 +++- source/simulation/EntitySupport.h | 4 +- source/simulation/EventHandlers.cpp | 4 +- source/simulation/EventHandlers.h | 4 +- 19 files changed, 115 insertions(+), 67 deletions(-) diff --git a/binaries/data/config/system.cfg b/binaries/data/config/system.cfg index 7ea9de2ffb..1a2e910630 100644 --- a/binaries/data/config/system.cfg +++ b/binaries/data/config/system.cfg @@ -109,6 +109,7 @@ sound.mastergain = 0.5 ; > SYSTEM SETTINGS hotkey.exit = Escape, "Ctrl+F4" ; Exit to desktop. +hotkey.pause = Pause ; Pause/unpause game. hotkey.screenshot = F2 ; Take PNG screenshot. hotkey.bigscreenshot = "Ctrl+Alt+F2" ; Take large BMP screenshot. hotkey.screenshot.watermark = "W" ; Toggle product/company watermark for official screenshots. diff --git a/binaries/data/mods/official/entities/template_entity_full.xml b/binaries/data/mods/official/entities/template_entity_full.xml index 144b3b5e6a..b3fcbb8fc6 100644 --- a/binaries/data/mods/official/entities/template_entity_full.xml +++ b/binaries/data/mods/official/entities/template_entity_full.xml @@ -16,12 +16,8 @@ -