------------------------------------------------------------------------
r3434 | utunnels | 2011-09-10 12:51:38 -0400 (Sat, 10 Sep 2011) | 3 lines
Changed paths:
M /engine/openbor.c
M /engine/openbor.h
M /engine/source/gamelib/soundmix.c
M /engine/source/gamelib/soundmix.h
Also pause sound effects when game paused.
Simplified AI code.
------------------------------------------------------------------------
r3433 | utunnels | 2011-09-10 02:58:36 -0400 (Sat, 10 Sep 2011) | 2 lines
Changed paths:
M /engine/source/gamelib/spritef.c
M /engine/source/gamelib/spritex8p16.c
M /engine/source/gamelib/spritex8p32.c
Fix a single pixel overflow loophole in drawmethod code (gfxshadow outside the screen).
For example, Golden Axe Legend saved civilian shows a single moving black pixel running across the screen.
------------------------------------------------------------------------
r3431 | utunnels | 2011-09-09 11:53:34 -0400 (Fri, 09 Sep 2011) | 2 lines
Changed paths:
M /engine/openbor.c
Update kill_all function.
Should call clear_all_scripts after onkill script.
------------------------------------------------------------------------
r3430 | utunnels | 2011-09-09 05:09:54 -0400 (Fri, 09 Sep 2011) | 4 lines
Changed paths:
M /engine/openbor.c
M /engine/openborscript.c
M /engine/source/gamelib/commands.c
M /engine/source/gamelib/commands.h
M /engine/source/scriptlib/Interpreter.c
M /engine/source/scriptlib/Interpreter.h
New models.txt command nodropspawn {0/1}
When it is on, the spawn position will be restricted to spawn entry setting.
Script engine will execute clear method when a script is being cleared. Local variable "localclear" is accessible.
------------------------------------------------------------------------
r3429 | utunnels | 2011-09-09 00:03:31 -0400 (Fri, 09 Sep 2011) | 1 line
Changed paths:
M /engine/openborscript.c
M /engine/openborscript.h
Add size function for array.
------------------------------------------------------------------------
r3428 | utunnels | 2011-09-08 11:35:00 -0400 (Thu, 08 Sep 2011) | 17 lines
Changed paths:
M /engine/openborscript.c
M /engine/openborscript.h
New script functions (don't use, still under polishing):
array(int size)
get(array, int index)
set(array, int index, value)
Example:
int i;
void arr = array(99);
set(arr, 98, 233);
log(get(arr, 98));
for(i=0; i<99; i++){
set(arr, i, NULL());
}
free(arr);
arr = NULL();
------------------------------------------------------------------------
r3427 | utunnels | 2011-09-07 22:31:19 -0400 (Wed, 07 Sep 2011) | 2 lines
Changed paths:
M /engine/openbor.c
M /engine/openbor.h
M /engine/openborscript.c
M /engine/source/gamelib/commands.c
M /engine/source/gamelib/commands.h
Add nokill command for attack box.
The attack won't kill the target but will leave 1 HP.
------------------------------------------------------------------------
r3426 | utunnels | 2011-09-07 21:56:14 -0400 (Wed, 07 Sep 2011) | 2 lines
Changed paths:
M /engine/openbor.c
Change to (float)GAME_SPEED in applybglayer to fix rock command staying still bug.
Though it is not a must since bgspeed always works.
------------------------------------------------------------------------
r3425 | utunnels | 2011-09-07 04:22:17 -0400 (Wed, 07 Sep 2011) | 1 line
Changed paths:
M /engine/openbor.c
Fix weaploss 2.
------------------------------------------------------------------------
r3424 | utunnels | 2011-09-07 02:44:38 -0400 (Wed, 07 Sep 2011) | 5 lines
Changed paths:
M /engine/openbor.c
M /engine/openbor.h
M /engine/source/gamelib/anigif.c
Don't render the first color black when playing a gif, modder should be able to control that if they want.
Restore bgbuffer.
Add new aimove switch notargetmove(no target move) for second parameter. Play idle animation when there's no target.
------------------------------------------------------------------------
r3423 | utunnels | 2011-09-07 01:27:21 -0400 (Wed, 07 Sep 2011) | 1 line
Changed paths:
M /engine/openbor.c
Let enemies wander around if there's no target.
------------------------------------------------------------------------
r3422 | utunnels | 2011-09-06 23:25:19 -0400 (Tue, 06 Sep 2011) | 2 lines
Changed paths:
M /engine/openborscript.c
M /engine/openborscript.h
M /engine/source/utils.c
Fix screenshot 100 limit.
Add closefilestream.
------------------------------------------------------------------------
r3421 | utunnels | 2011-09-06 09:51:02 -0400 (Tue, 06 Sep 2011) | 4 lines
Changed paths:
M /engine/openbor.c
M /engine/openbor.h
M /engine/source/gamelib/spritef.c
M /engine/source/gamelib/spritex8p16.c
M /engine/source/gamelib/spritex8p32.c
M /engine/source/scriptlib/depends.h
1. Fix drawmethod overflow bug when scaling a sprite.
2. Add #pragma pack(4) in scriptlib, since it is causing mysterious bugs, we shall keep an eye on that.
3. Update script variables saving function saveScriptFile.
4. Unfinished global plan feature to make AI more flexible (no effect right now, the functions are still being written).
------------------------------------------------------------------------