mirror of
https://github.com/ZDoom/qzdoom-gpl.git
synced 2024-11-15 16:51:31 +00:00
- Fixed: The chat sound for Strife was misnamed in the gameinfo structure.
- fixed a few DECORATE bugs. SVN r1165 (trunk)
This commit is contained in:
parent
65a19e4be7
commit
3cb073a3a0
7 changed files with 22 additions and 15 deletions
|
@ -1,4 +1,6 @@
|
|||
August 12, 2008 (Changes by Graf Zahl)
|
||||
- Fixed: The chat sound for Strife was misnamed in the gameinfo structure.
|
||||
- fixed a few DECORATE bugs.
|
||||
- Changed the action function declaration parser so that optional parameters
|
||||
can be given a default value. The 'optional' keyword is no longer needed
|
||||
and was removed, as well as 'evalnot'.
|
||||
|
|
|
@ -185,13 +185,16 @@ DEFINE_ACTION_FUNCTION(AActor, A_CStaffInitBlink)
|
|||
|
||||
DEFINE_ACTION_FUNCTION(AActor, A_CStaffCheckBlink)
|
||||
{
|
||||
if (!--self->special1)
|
||||
if (self->player && self->player->ReadyWeapon)
|
||||
{
|
||||
P_SetPsprite (self->player, ps_weapon, self->FindState ("Blink"));
|
||||
self->special1 = (pr_blink()+50)>>2;
|
||||
}
|
||||
else
|
||||
{
|
||||
CALL_ACTION(A_WeaponReady, self);
|
||||
if (!--self->special1)
|
||||
{
|
||||
P_SetPsprite (self->player, ps_weapon, self->player->ReadyWeapon->FindState ("Blink"));
|
||||
self->special1 = (pr_blink()+50)>>2;
|
||||
}
|
||||
else
|
||||
{
|
||||
CALL_ACTION(A_WeaponReady, self);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -160,9 +160,9 @@ DEFINE_ACTION_FUNCTION(AActor, A_CorpseExplode)
|
|||
for (i = (pr_foo()&3)+3; i; i--)
|
||||
{
|
||||
mo = Spawn ("CorpseBit", self->x, self->y, self->z, ALLOW_REPLACE);
|
||||
mo->SetState (mo->SpawnState + (pr_foo()%3));
|
||||
if (mo)
|
||||
{
|
||||
mo->SetState (mo->SpawnState + (pr_foo()%3));
|
||||
mo->momz = ((pr_foo()&7)+5)*(3*FRACUNIT/4);
|
||||
mo->momx = pr_foo.Random2()<<(FRACBITS-6);
|
||||
mo->momy = pr_foo.Random2()<<(FRACBITS-6);
|
||||
|
@ -170,9 +170,9 @@ DEFINE_ACTION_FUNCTION(AActor, A_CorpseExplode)
|
|||
}
|
||||
// Spawn a skull
|
||||
mo = Spawn ("CorpseBit", self->x, self->y, self->z, ALLOW_REPLACE);
|
||||
mo->SetState (mo->SpawnState + 3);
|
||||
if (mo)
|
||||
{
|
||||
mo->SetState (mo->SpawnState + 3);
|
||||
mo->momz = ((pr_foo()&7)+5)*(3*FRACUNIT/4);
|
||||
mo->momx = pr_foo.Random2()<<(FRACBITS-6);
|
||||
mo->momy = pr_foo.Random2()<<(FRACBITS-6);
|
||||
|
@ -277,9 +277,9 @@ DEFINE_ACTION_FUNCTION(AActor, A_SoAExplode)
|
|||
mo = Spawn ("ZArmorChunk", self->x+((pr_soaexplode()-128)<<12),
|
||||
self->y+((pr_soaexplode()-128)<<12),
|
||||
self->z+(pr_soaexplode()*self->height/256), ALLOW_REPLACE);
|
||||
mo->SetState (mo->SpawnState + i);
|
||||
if (mo)
|
||||
{
|
||||
mo->SetState (mo->SpawnState + i);
|
||||
mo->momz = ((pr_soaexplode()&7)+5)*FRACUNIT;
|
||||
mo->momx = pr_soaexplode.Random2()<<(FRACBITS-6);
|
||||
mo->momy = pr_soaexplode.Random2()<<(FRACBITS-6);
|
||||
|
|
|
@ -311,7 +311,7 @@ gameinfo_t StrifeGameInfo =
|
|||
280/35,
|
||||
0,
|
||||
200/35,
|
||||
"Chat",
|
||||
"misc/chat",
|
||||
"d_intro",
|
||||
"-NOFLAT",
|
||||
"CREDIT",
|
||||
|
@ -340,7 +340,7 @@ gameinfo_t StrifeTeaserGameInfo =
|
|||
280/35,
|
||||
0,
|
||||
200/35,
|
||||
"Chat",
|
||||
"misc/chat",
|
||||
"d_intro",
|
||||
"-NOFLAT",
|
||||
"CREDIT",
|
||||
|
@ -369,7 +369,7 @@ gameinfo_t StrifeTeaser2GameInfo =
|
|||
280/35,
|
||||
0,
|
||||
200/35,
|
||||
"Chat",
|
||||
"misc/chat",
|
||||
"d_intro",
|
||||
"-NOFLAT",
|
||||
"CREDIT",
|
||||
|
|
|
@ -19,7 +19,7 @@ ACTOR Actor native //: Thinker
|
|||
Gravity 1
|
||||
|
||||
action native A_MonsterRail();
|
||||
action native A_BFGSpray(class<Actor> spraytype = "BFGSpray", int numrays = 40, int damagecount = 15);
|
||||
action native A_BFGSpray(class<Actor> spraytype = "BFGExtra", int numrays = 40, int damagecount = 15);
|
||||
action native A_Pain();
|
||||
action native A_NoBlocking();
|
||||
action native A_XScream();
|
||||
|
|
|
@ -270,6 +270,7 @@ ACTOR ZCorpseSitting 110
|
|||
Spawn:
|
||||
CPS6 A -1
|
||||
Stop
|
||||
Death:
|
||||
CPS6 A 1 A_CorpseExplode
|
||||
Stop
|
||||
}
|
||||
|
@ -522,6 +523,7 @@ ACTOR ZSuitOfArmor 8064
|
|||
Spawn:
|
||||
ZSUI A -1
|
||||
Stop
|
||||
Death:
|
||||
ZSUI A 1 A_SoAExplode
|
||||
Stop
|
||||
}
|
||||
|
|
|
@ -16,7 +16,7 @@ ACTOR ArtiTeleport : Inventory 36 native
|
|||
States
|
||||
{
|
||||
Spawn:
|
||||
ATLP ABCD 4
|
||||
ATLP ABCB 4
|
||||
Loop
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue