Merge branch 'master' into scripting
Conflicts: src/actor.h src/g_hexen/a_hexenspecialdecs.cpp src/g_strife/a_thingstoblowup.cpp src/thingdef/thingdef_codeptr.cpp
This commit is contained in:
commit
4b9647e539
23 changed files with 484 additions and 448 deletions
|
|
@ -2854,10 +2854,10 @@ DEFINE_ACTION_FUNCTION_PARAMS(AActor, A_SpawnDebris)
|
|||
|
||||
for (i = 0; i < GetDefaultByType(debris)->health; i++)
|
||||
{
|
||||
mo = Spawn(debris, self->Vec3Offset(
|
||||
((pr_spawndebris()-128)<<12),
|
||||
((pr_spawndebris()-128)<<12),
|
||||
(pr_spawndebris()*self->height/256+self->GetBobOffset())), ALLOW_REPLACE);
|
||||
fixed_t xo = ((pr_spawndebris() - 128) << 12);
|
||||
fixed_t yo = ((pr_spawndebris() - 128) << 12);
|
||||
fixed_t zo = (pr_spawndebris()*self->height / 256 + self->GetBobOffset());
|
||||
mo = Spawn(debris, self->Vec3Offset(xo, yo, zo), ALLOW_REPLACE);
|
||||
if (mo)
|
||||
{
|
||||
if (transfer_translation)
|
||||
|
|
@ -3188,10 +3188,10 @@ DEFINE_ACTION_FUNCTION_PARAMS(AActor, A_Burst)
|
|||
i = (pr_burst.Random2()) % (numChunks/4);
|
||||
for (i = MAX (24, numChunks + i); i >= 0; i--)
|
||||
{
|
||||
mo = Spawn(chunk, self->Vec3Offset(
|
||||
(((pr_burst()-128)*self->radius)>>7),
|
||||
(((pr_burst()-128)*self->radius)>>7),
|
||||
(pr_burst()*self->height/255 + self->GetBobOffset())), ALLOW_REPLACE);
|
||||
fixed_t xo = (((pr_burst() - 128)*self->radius) >> 7);
|
||||
fixed_t yo = (((pr_burst() - 128)*self->radius) >> 7);
|
||||
fixed_t zo = (pr_burst()*self->height / 255 + self->GetBobOffset());
|
||||
mo = Spawn(chunk, self->Vec3Offset(xo, yo, zo), ALLOW_REPLACE);
|
||||
|
||||
if (mo)
|
||||
{
|
||||
|
|
@ -4926,7 +4926,6 @@ DEFINE_ACTION_FUNCTION_PARAMS(AActor, A_WolfAttack)
|
|||
fixedvec2 vec = self->Vec2To(self->target);
|
||||
fixed_t dx = abs (vec.x);
|
||||
fixed_t dy = abs (vec.y);
|
||||
fixed_t dz;
|
||||
fixed_t dist = dx > dy ? dx : dy;
|
||||
|
||||
// Some enemies are more precise
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue