Subversion Repositories eduke32


Show changed files | Details | Compare with Previous | Blame | RSS feed

Filtering Options

Rev Age Author Path Log message Diff
5031 2427d 16h hendricks266 /polymer/eduke32/source/gameexec.c CON: Rename "cutscene" command to "startcutscene".  
5016 2431d 17h helixhorned /polymer/eduke32/source/gameexec.c Add lunatic/test/thisactor_getzrange.con, providing 'state thisactor_getzrange'.

Also, note a place that is the real cause for "what makes the player slide off
enemies", as far as I can see.
5015 2431d 17h helixhorned /polymer/eduke32/source/gameexec.c gameexec.c: factor out 2x occuring pattern into VM_GetZRange(), clean up 3 funcs.

- VM_GetZRange(), which updates actor[].{floor,ceiling}z, is called from
A_GetZLimits() and A_Fall().
- Style-cleanup the following: A_Dodge(), A_GetFurthestAngle(),
A_FurthestVisiblePoint(). DONT_BUILD.
5014 2431d 17h helixhorned /polymer/eduke32/source/gameexec.c Revert "gameexec.c: in VM_Move(), update actor[].{floor,ceiling}z for enemies."

This reverts r4975. DONT_BUILD.
5005 2436d 7h hendricks266 /polymer/eduke32/source/gameexec.c Apple: Update Xcode project and build system. DONT_BUILD.  
5000 2439d 9h terminx /polymer/eduke32/source/gameexec.c More Android work. DONT_BUILD.  
4988 2439d 9h terminx /polymer/eduke32/source/gameexec.c C-CON changes  
4987 2439d 9h terminx /polymer/eduke32/source/gameexec.c Animation system overhaul part 1. This allows for an unlimited number of .anm/.ivf files to be defined via duke3d.def and played back at any time with the new CON commands. Syntax is currently as follows, but may change:

cutscene "somefile.anm" { delay 10 } // defines somefile.anm with a delay of 10 120Hz tics between frames. a more typical framerate method may come later, but this is how the originals worked.

Once defined, they can be played through CON with the new playback command, also called "cutscene". It works like this:

definequote 12345 somefile.anm
define ANIM_SOMEFILE 12345


cutscene ANIM_SOMEFILE // halts game execution and immediately plays cutscene, resuming execution when finished


Sounds can be played during animations (and tiles can be overlaid, etc) like this:

ifcutscene ANIM_SOMEFILE
ifvare RETURN 12 // frame 12
sound FLY_BY
rotatesprite ...

The value of the RETURN var at the end of EVENT_CUTSCENE determines the next frame to play. This can be used for looping, etc. Attempting to play animations backwards outright is not advised as animations only seek in one direction (so rewinding requires running it through from frame 0 again). This is will WIP and hasn't been heavily tested at all, so please try it out.
4975 2441d 19h helixhorned /polymer/eduke32/source/gameexec.c gameexec.c: in VM_Move(), update actor[].{floor,ceiling}z for enemies.

Previously, that was the case only with DRONE and COMMANDER. This makes
non-falling enemies pass properly through TROR bunches.
4969 2442d 6h hendricks266 /polymer/eduke32/source/gameexec.c CON: Add STR_YOURTIME, STR_PARTIME, STR_DESIGNERTIME, and STR_BESTTIME to qgetsysstr.  
4956 2444d 22h helixhorned /polymer/eduke32/source/gameexec.c Add SFLAG_NOWATERDIP, unconditionally preventing actors from dipping into ST1 water.

By default, the following enemies have this flag set: OCTABRAIN, COMMANDER, DRONE.
4955 2444d 22h helixhorned /polymer/eduke32/source/gameexec.c Actor ST1 handling: use A_GetWaterZOffset() with VM_Move(), too. DONT_BUILD.

This is where things are changed at last. This fixes lizmen walking on water.
4954 2444d 22h helixhorned /polymer/eduke32/source/gameexec.c Actor ST1 handling: cleanup part 2. DONT_BUILD.

Factor out condition for whether a z offset is added or not
("fix for flying/jumping monsters getting stuck in water", etc.) into
a function A_GetWaterZOffset() (and a helper A_GetVerticalVel()).
4953 2444d 22h helixhorned /polymer/eduke32/source/gameexec.c Actor ST1 handling: clean up code a bit. (Preparation for real changes.)

In VM_Fall(), keep a temp preliminary new z position of the actor and
assign only when we return. This is to each ease watching its value in GDB.
4948 2456d 2h hendricks266 /polymer/eduke32/source/gameexec.c Modularize .mid --> .ogg --> .flac code to apply to sounds as well, and various cleanup in music/sound filename-handling code.  
4937 2462d 14h helixhorned /polymer/eduke32/source/gameexec.c Lunatic: fix build and linking. DONT_BUILD.

- t{sector,wall}type are simply typedef'd to the non-t versions
- make FORCE_INLINE unconditional of DISABLE_INLINING (otherwise there are
multiple definitions of these functions)
- update lunatic/doc/lpeg-lunatic.patch to apply against the LPeg 0.12 I just
4928 2464d 14h hendricks266 /polymer/eduke32/source/gameexec.c CON: Add new commands "getmusicposition" and "setmusicposition" that operate on the playback position of the current music track.

// Example: Switch between tracks like radio stations.
getmusicposition temp
starttrackvar next_music_track
setmusicposition temp

Only implemented for Ogg Vorbis, FLAC, and XA. Consult the devs before using these commands.
4923 2465d 8h terminx /polymer/eduke32/source/gameexec.c Fix savemapstate/loadmapstate (fixes a crash at shutdown, among other things)  
4919 2466d 7h terminx /polymer/eduke32/source/gameexec.c Implement better fade-out for quotes and for the mouse cursor in the menu.  
4903 2470d 9h terminx /polymer/eduke32/source/gameexec.c Introduce "twalltype" for temporary uses of walltype where using wall_tracker_hook() would be invalid. This is similar to "tspritetype" and fixes a bunch of problems in the editor that cropped up when changing the tracker sanity checks to an assert that only exists in debug builds (branching upon any write to a sprite, sector or wall had an unacceptable impact on performance).  

Show All