mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-01-31 10:46:40 +00:00
Finish Script Editor tooltips
This commit is contained in:
parent
7a0faf71ab
commit
8f87c3761b
6 changed files with 1058 additions and 287 deletions
File diff suppressed because it is too large
Load diff
|
|
@ -13,29 +13,144 @@
|
|||
// Macros |
|
||||
//
|
||||
|
||||
#define TRUE 1
|
||||
#define FALSE 0
|
||||
#define ON 1
|
||||
#define OFF 0
|
||||
#define YES 1
|
||||
#define NO 0
|
||||
#define TRUE (1)
|
||||
#define FALSE (0)
|
||||
|
||||
#define LINE_FRONT 0
|
||||
#define LINE_BACK 1
|
||||
#define ON (1)
|
||||
#define OFF (0)
|
||||
|
||||
#define SIDE_FRONT 0
|
||||
#define SIDE_BACK 1
|
||||
#define YES (1)
|
||||
#define NO (0)
|
||||
|
||||
#define TEXTURE_TOP 0
|
||||
#define TEXTURE_MIDDLE 1
|
||||
#define TEXTURE_BOTTOM 2
|
||||
#define FLAG_NOCHANGE (0)
|
||||
#define FLAG_ADD (1)
|
||||
#define FLAG_REMOVE (2)
|
||||
|
||||
#define GAMETYPE_RACE 0
|
||||
#define GAMETYPE_BATTLE 1
|
||||
#define PLANE_FLOOR (0)
|
||||
#define PLANE_CEILING (1)
|
||||
#define PLANE_BOTH (2)
|
||||
|
||||
#define GAMESPEED_EASY 0
|
||||
#define GAMESPEED_NORMAL 1
|
||||
#define GAMESPEED_HARD 2
|
||||
#define SIDE_FRONT (0)
|
||||
#define SIDE_BACK (1)
|
||||
#define SIDE_BOTH (2)
|
||||
|
||||
#define TEXTURE_TOP (0)
|
||||
#define TEXTURE_MIDDLE (1)
|
||||
#define TEXTURE_BOTTOM (2)
|
||||
|
||||
#define TAG_REPLACEFIRST (0)
|
||||
#define TAG_ADD (1)
|
||||
#define TAG_REMOVE (2)
|
||||
|
||||
#define LIGHT_COPY_NOSECTOR (1)
|
||||
#define LIGHT_COPY_NOFLOOR (1<<1)
|
||||
#define LIGHT_COPY_NOCEILING (1<<2)
|
||||
|
||||
#define LIGHT_BLINK_USETARGET (1)
|
||||
#define LIGHT_BLINK_SYNC (1<<1)
|
||||
|
||||
#define LIGHT_FADE_RELATIVE (1)
|
||||
#define LIGHT_FADE_OVERRIDE (1<<1)
|
||||
#define LIGHT_FADE_TICBASED (1<<2)
|
||||
|
||||
#define LIGHT_AREA_SECTOR (0)
|
||||
#define LIGHT_AREA_FLOOR (1)
|
||||
#define LIGHT_AREA_CEILING (2)
|
||||
|
||||
#define TELEPORT_SILENT (1)
|
||||
#define TELEPORT_KEEPANGLE (1<<1)
|
||||
#define TELEPORT_KEEPMOMENTUM (1<<2)
|
||||
#define TELEPORT_RELATIVE (1<<3)
|
||||
|
||||
#define MUSIC_ALLPLAYERS (1)
|
||||
#define MUSIC_NOLOOP (1<<2)
|
||||
#define MUSIC_NOCREDIT (1<<3)
|
||||
#define MUSIC_NORELOAD (1<<4)
|
||||
#define MUSIC_FORCERESET (1<<5)
|
||||
#define MUSIC_OFFSET (1<<6)
|
||||
#define MUSIC_FADE (1<<7)
|
||||
|
||||
#define SFX_SOURCE_TRIGGERMOBJ (0)
|
||||
#define SFX_SOURCE_TRIGGERSECTOR (1)
|
||||
#define SFX_SOURCE_NOWHERE (2)
|
||||
#define SFX_SOURCE_TAGGEDSECTOR (3)
|
||||
|
||||
#define SFX_LISTEN_EVERYONE (0)
|
||||
#define SFX_LISTEN_TRIGGERER (1)
|
||||
#define SFX_LISTEN_TAGGEDSECTOR (2)
|
||||
|
||||
#define CRUMBLE_NORETURN (1)
|
||||
#define CRUMBLE_CHECKFLAG (1<<1)
|
||||
|
||||
#define COLORMAP_RELATIVE (1)
|
||||
#define COLORMAP_SUBLIGHTR (1<<1)
|
||||
#define COLORMAP_SUBLIGHTG (1<<2)
|
||||
#define COLORMAP_SUBLIGHTB (1<<3)
|
||||
#define COLORMAP_SUBLIGHTA (1<<4)
|
||||
#define COLORMAP_SUBFADER (1<<5)
|
||||
#define COLORMAP_SUBFADEG (1<<6)
|
||||
#define COLORMAP_SUBFADEB (1<<7)
|
||||
#define COLORMAP_SUBFADEA (1<<8)
|
||||
#define COLORMAP_SUBFADESTART (1<<9)
|
||||
#define COLORMAP_SUBFADEEND (1<<10)
|
||||
#define COLORMAP_IGNOREFLAGS (1<<11)
|
||||
#define COLORMAP_FROMBLACK (1<<12)
|
||||
#define COLORMAP_OVERRIDE (1<<13)
|
||||
|
||||
#define SKYBOX_VIEWPOINT (0)
|
||||
#define SKYBOX_CENTERPOINT (1)
|
||||
#define SKYBOX_BOTH (2)
|
||||
|
||||
#define ALPHA_SET_RELATIVE (1)
|
||||
#define ALPHA_SET_DONTDOTRANSLUCENT (1<<1)
|
||||
|
||||
#define ALPHA_FADE_RELATIVE (1)
|
||||
#define ALPHA_FADE_OVERRIDE (1<<1)
|
||||
#define ALPHA_FADE_TICBASED (1<<2)
|
||||
#define ALPHA_FADE_IGNORECOLLISION (1<<3)
|
||||
#define ALPHA_FADE_GHOSTFADE (1<<4)
|
||||
#define ALPHA_FADE_DONTDOTRANSLUCENT (1<<5)
|
||||
#define ALPHA_FADE_DONTDOEXISTS (1<<6)
|
||||
#define ALPHA_FADE_DONTDOLIGHTING (1<<7)
|
||||
#define ALPHA_FADE_DONTDOCOLORMAP (1<<8)
|
||||
#define ALPHA_FADE_USEEXACTALPHA (1<<9)
|
||||
|
||||
#define PROMPT_CLOSE (1)
|
||||
#define PROMPT_RUNPOSTEXEC (1<<1)
|
||||
#define PROMPT_CALLBYNAME (1<<2)
|
||||
#define PROMPT_KEEPCONTROLS (1<<3)
|
||||
#define PROMPT_KEEPREALTIME (1<<4)
|
||||
|
||||
#define PO_ROTATE_DONTROTATEOTHERS (1)
|
||||
#define PO_ROTATE_DONTROTATEPLAYERS (1<<1)
|
||||
#define PO_ROTATE_CONTINUOUS (1<<2)
|
||||
#define PO_ROTATE_OVERRIDE (1<<3)
|
||||
|
||||
#define PO_WP_RETURN_STOP (0)
|
||||
#define PO_WP_RETURN_WRAP (1)
|
||||
#define PO_WP_RETURN_COMEBACK (2)
|
||||
|
||||
#define PO_WP_REVERSE (1)
|
||||
#define PO_WP_LOOP (1<<1)
|
||||
|
||||
#define PO_FADE_RELATIVE (1)
|
||||
#define PO_FADE_OVERRIDE (1<<1)
|
||||
#define PO_FADE_TICBASED (1<<2)
|
||||
#define PO_FADE_IGNORECOLLISION (1<<3)
|
||||
#define PO_FADE_GHOSTFADE (1<<4)
|
||||
|
||||
#define TICRATE (35)
|
||||
#define FRACBITS (16)
|
||||
#define FRACUNIT (1<<FRACBITS)
|
||||
|
||||
#define GAMETYPE_RACE (0)
|
||||
#define GAMETYPE_BATTLE (1)
|
||||
|
||||
#define GAMESPEED_EASY (0)
|
||||
#define GAMESPEED_NORMAL (1)
|
||||
#define GAMESPEED_HARD (2)
|
||||
|
||||
#define TAG_ALL (65535)
|
||||
|
||||
#endif//__GDCC_Header__ACS__rrdefs_acs__
|
||||
|
||||
|
|
|
|||
|
|
@ -77,12 +77,12 @@ special
|
|||
|
||||
int 411:Sector_StopMovement(1),
|
||||
int 412:Thing_Teleport(1, 5),
|
||||
int 413:Level_SetMusic(2, 8),
|
||||
int 413:Level_SetMusic(1, 8),
|
||||
int 414:PlaySFX(1, 4),
|
||||
int 415:Console_Execute(1),
|
||||
int 416:Light_Flicker(3, 5),
|
||||
int 417:Light_Pulse(3, 5),
|
||||
int 418:Light_Blink(4, 6),
|
||||
int 416:Light_Flicker(5),
|
||||
int 417:Light_Glow(5),
|
||||
int 418:Light_Blink(6),
|
||||
|
||||
int 420:Light_Fade(3, 4),
|
||||
int 421:Light_Stop(1),
|
||||
|
|
@ -92,36 +92,36 @@ special
|
|||
int 425:Thing_SetState(1),
|
||||
int 426:Thing_Stop(0, 1),
|
||||
int 427:Player_AddScore(1),
|
||||
int 428:FOF_StartMovement(2, 5),
|
||||
int 428:Sector_PlatformMovement(2, 5),
|
||||
int 429:Sector_Crush(3),
|
||||
|
||||
int 433:Thing_SetFlip(1),
|
||||
|
||||
int 435:Sector_ChangeScroll(3),
|
||||
int 436:FOF_Shatter(2),
|
||||
int 437:Player_DisableControl(1, 2),
|
||||
int 437:Player_DisableControl(1),
|
||||
int 438:Thing_SetScale(1),
|
||||
int 439:Line_CopyTextures(3, 4),
|
||||
int 440:Level_StartMetalSonicRace(0),
|
||||
int 441:SetUnlockableTrigger(1),
|
||||
int 442:Sector_NextThingState(3, 4),
|
||||
int 442:Sector_ChangeThingStates(3, 4),
|
||||
int 443:Lua_Execute(1, 12),
|
||||
int 444:Earthquake(1, 3),
|
||||
int 445:FOF_SetExists(2, 3),
|
||||
int 445:FOF_SetExists(3),
|
||||
int 446:FOF_Crumble(2, 3),
|
||||
int 447:Sector_SetColormap(2, 3),
|
||||
int 448:SetSkyboxViewpoints(3, 4),
|
||||
int 449:SetBossActive(2),
|
||||
int 448:Level_SetSkyboxViewpoints(3, 4),
|
||||
int 449:Level_SetBossDisabled(2),
|
||||
int 450:Line_Execute(1),
|
||||
int 451:Line_ExecuteRandom(2),
|
||||
int 452:FOF_SetAlpha(3, 4),
|
||||
int 453:FOF_Fade(4, 5),
|
||||
int 454:FOF_StopFade(2, 3),
|
||||
int 455:Sector_FadeColormap(2, 4),
|
||||
int 455:Sector_FadeColormap(3, 4),
|
||||
int 456:Sector_StopColormapFade(1),
|
||||
int 457:Thing_StartTracking(3, 5),
|
||||
int 457:Thing_StartTracking(4, 5),
|
||||
int 458:Thing_StopTracking(0),
|
||||
int 459:Prompt_Execute(2, 4),
|
||||
int 459:Prompt_Execute(4, 5),
|
||||
int 460:Player_AddRings(1, 3),
|
||||
int 461:Thing_Spawn(5, 9),
|
||||
int 462:Level_StopClock(0),
|
||||
|
|
@ -138,8 +138,8 @@ special
|
|||
int 477:ACS_Suspend(1),
|
||||
int 478:ACS_Terminate(1),
|
||||
|
||||
int 480:Polyobj_DoorSlide(4, 5),
|
||||
int 481:Polyobj_DoorSwing(3, 4),
|
||||
int 480:Polyobj_DoorSlide(5),
|
||||
int 481:Polyobj_DoorSwing(4),
|
||||
int 482:Polyobj_Move(4, 5),
|
||||
|
||||
int 484:Polyobj_Rotate(3, 4),
|
||||
|
|
@ -152,7 +152,8 @@ special
|
|||
|
||||
int 499:Sector_ToggleWaypoints(2),
|
||||
|
||||
// internal functions have negative values
|
||||
// Internal functions have negative values
|
||||
// [type] [ID]:[function name]([required args], [type of each arg, including optional ones])
|
||||
/*
|
||||
int -1:GetLineUDMFInt(2, int, str),
|
||||
fixed -2:GetLineUDMFFixed(2, int, str),
|
||||
|
|
@ -164,9 +165,9 @@ special
|
|||
fixed -8:GetSideUDMFFixed(3, int, int, str),
|
||||
*/
|
||||
|
||||
// 0 to 56: Implemented by ACSVM
|
||||
void { 2 }:__suspend(void),
|
||||
|
||||
// 0 to 56: Implemented by ACSVM
|
||||
void { 55, 56}:Delay(int),
|
||||
int { 57, 58}:Random(int, int),
|
||||
fixed { 57, 58}:RandomFixed(fixed, fixed),
|
||||
|
|
@ -219,6 +220,8 @@ special
|
|||
int {253 }:StrLen(str), // 253: Implemented by ACSVM
|
||||
|
||||
// 256 to 257: Implemented by ACSVM
|
||||
void {257 }:SetResultValue(int),
|
||||
void {257 }:SetResultValueFixed(fixed),
|
||||
|
||||
// 263: Implemented by ACSVM
|
||||
|
||||
|
|
@ -245,12 +248,12 @@ special
|
|||
|
||||
void {361 }:ScriptWait(str),
|
||||
|
||||
// 363 to 380: Implemented by ACSVM
|
||||
|
||||
void {378 }:PrintLocalCharArray(int, int),
|
||||
void {379 }:PrintLocalCharRange(int, int, int, int),
|
||||
int {380 }:StrCpyToLocalCharRange(int, int, int, int, str, int);
|
||||
|
||||
// 363 to 380: Implemented by ACSVM
|
||||
|
||||
print __Print
|
||||
(
|
||||
(begin): BeginPrint,
|
||||
|
|
|
|||
|
|
@ -294,20 +294,6 @@ struct polywaypointdata_t
|
|||
UINT8 flags; // PWF_ flags
|
||||
};
|
||||
|
||||
typedef enum
|
||||
{
|
||||
TMPV_NOCHANGE = 1,
|
||||
TMPV_VISIBLE = 1<<1,
|
||||
TMPV_INVISIBLE = 1<<2,
|
||||
} textmappolyvisibility_t;
|
||||
|
||||
typedef enum
|
||||
{
|
||||
TMPT_NOCHANGE = 1,
|
||||
TMPT_TANGIBLE = 1<<1,
|
||||
TMPT_INTANGIBLE = 1<<2,
|
||||
} textmappolytangibility_t;
|
||||
|
||||
// polyobject door types
|
||||
typedef enum
|
||||
{
|
||||
|
|
|
|||
|
|
@ -4922,13 +4922,14 @@ static void P_ConvertBinaryLinedefTypes(void)
|
|||
lines[i].args[2] = TMT_REPLACEFIRST;
|
||||
break;
|
||||
case 410: //Change front sector's tag
|
||||
lines[i].args[0] = sides[lines[i].sidenum[0]].textureoffset >> FRACBITS;
|
||||
lines[i].args[0] = 0;
|
||||
lines[i].args[1] = sides[lines[i].sidenum[0]].textureoffset >> FRACBITS;
|
||||
if (lines[i].flags & ML_NOCLIMB)
|
||||
lines[i].args[1] = TMT_ADD;
|
||||
lines[i].args[2] = TMT_ADD;
|
||||
else if (lines[i].flags & ML_BLOCKPLAYERS)
|
||||
lines[i].args[1] = TMT_REMOVE;
|
||||
lines[i].args[2] = TMT_REMOVE;
|
||||
else
|
||||
lines[i].args[1] = TMT_REPLACEFIRST;
|
||||
lines[i].args[2] = TMT_REPLACEFIRST;
|
||||
break;
|
||||
case 411: //Stop plane movement
|
||||
lines[i].args[0] = tag;
|
||||
|
|
@ -5175,7 +5176,6 @@ static void P_ConvertBinaryLinedefTypes(void)
|
|||
break;
|
||||
case 437: //Disable player control
|
||||
lines[i].args[0] = sides[lines[i].sidenum[0]].textureoffset >> FRACBITS;
|
||||
lines[i].args[1] = !!(lines[i].flags & ML_NOCLIMB);
|
||||
break;
|
||||
case 438: //Change object size
|
||||
lines[i].args[0] = P_AproxDistance(lines[i].dx, lines[i].dy) >> FRACBITS;
|
||||
|
|
|
|||
38
src/p_spec.c
38
src/p_spec.c
|
|
@ -1034,20 +1034,20 @@ static void PolySetVisibilityTangibility(INT32 *args)
|
|||
if (po->isBad)
|
||||
return;
|
||||
|
||||
if (args[1] == TMPV_VISIBLE)
|
||||
if (args[1] == TMF_ADD)
|
||||
{
|
||||
po->flags &= ~POF_NOSPECIALS;
|
||||
po->flags |= (po->spawnflags & POF_RENDERALL);
|
||||
}
|
||||
else if (args[1] == TMPV_INVISIBLE)
|
||||
else if (args[1] == TMF_REMOVE)
|
||||
{
|
||||
po->flags |= POF_NOSPECIALS;
|
||||
po->flags &= ~POF_RENDERALL;
|
||||
}
|
||||
|
||||
if (args[2] == TMPT_TANGIBLE)
|
||||
if (args[2] == TMF_ADD)
|
||||
po->flags |= POF_SOLID;
|
||||
else if (args[2] == TMPT_INTANGIBLE)
|
||||
else if (args[2] == TMF_REMOVE)
|
||||
po->flags &= ~POF_SOLID;
|
||||
}
|
||||
|
||||
|
|
@ -2502,14 +2502,30 @@ void P_ProcessSpecial(activator_t *activator, INT16 special, INT32 *args, char *
|
|||
case 410: // Change front sector's tag
|
||||
{
|
||||
mtag_t newtag;
|
||||
line_t *editLine = NULL;
|
||||
|
||||
if (line == NULL)
|
||||
if (args[0] == 0)
|
||||
{
|
||||
break; // This one is reasonable to have based on the activator.
|
||||
if (line == NULL)
|
||||
{
|
||||
CONS_Debug(DBG_GAMELOGIC, "Special type 410 Executor: No linedef to change frontsector tag of!\n");
|
||||
return;
|
||||
}
|
||||
editLine = line;
|
||||
}
|
||||
else
|
||||
{
|
||||
INT32 destline = Tag_Iterate_Sectors(args[0], 0);
|
||||
if (destline == -1)
|
||||
{
|
||||
CONS_Debug(DBG_GAMELOGIC, "Special type 408 Executor: No linedef to change frontsector tag of (tag %d)!\n", args[0]);
|
||||
return;
|
||||
}
|
||||
editLine = &lines[destline];
|
||||
}
|
||||
|
||||
newtag = args[1];
|
||||
secnum = (UINT32)(line->frontsector - sectors);
|
||||
secnum = (UINT32)(editLine->frontsector - sectors);
|
||||
|
||||
switch (args[2])
|
||||
{
|
||||
|
|
@ -2947,8 +2963,6 @@ void P_ProcessSpecial(activator_t *activator, INT16 special, INT32 *args, char *
|
|||
UINT16 fractime = (UINT16)(args[0]);
|
||||
if (fractime < 1)
|
||||
fractime = 1; //instantly wears off upon leaving
|
||||
if (args[1])
|
||||
fractime |= 1<<15; //more crazy &ing, as if music stuff wasn't enough
|
||||
mo->player->nocontrol = fractime;
|
||||
}
|
||||
break;
|
||||
|
|
@ -2956,9 +2970,9 @@ void P_ProcessSpecial(activator_t *activator, INT16 special, INT32 *args, char *
|
|||
case 438: // Set player scale
|
||||
if (mo)
|
||||
{
|
||||
mo->destscale = FixedDiv(args[0]<<FRACBITS, 100<<FRACBITS);
|
||||
if (mo->destscale < FRACUNIT/100)
|
||||
mo->destscale = FRACUNIT/100;
|
||||
mo->destscale = FixedMul(FixedDiv(args[0]<<FRACBITS, 100<<FRACBITS), mapobjectscale);
|
||||
if (mo->destscale < mapobjectscale/100)
|
||||
mo->destscale = mapobjectscale/100;
|
||||
}
|
||||
break;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue