mirror of
https://github.com/ZDoom/Raze.git
synced 2025-05-31 09:20:59 +00:00
- scriptified the scraps.
A Duke-ish mess of epic proportions.
This commit is contained in:
parent
94a13118b3
commit
d253468b22
25 changed files with 300 additions and 175 deletions
|
@ -665,3 +665,21 @@ DEFINE_ACTION_FUNCTION_NATIVE(DCoreActor, setpositionz, coreactor_setpositionz)
|
|||
}
|
||||
|
||||
|
||||
void tspritetype_setSpritePic(tspritetype* targ, DCoreActor* self, unsigned z)
|
||||
{
|
||||
auto& spriteset = static_cast<PClassActor*>(self->GetClass())->ActorInfo()->SpriteSet;
|
||||
if (z < spriteset.Size())
|
||||
{
|
||||
targ->picnum = spriteset[z];
|
||||
}
|
||||
}
|
||||
|
||||
DEFINE_ACTION_FUNCTION_NATIVE(_tspritetype, setSpritePic, tspritetype_setSpritePic)
|
||||
{
|
||||
PARAM_SELF_STRUCT_PROLOGUE(tspritetype);
|
||||
PARAM_OBJECT(owner, DCoreActor);
|
||||
PARAM_INT(z);
|
||||
tspritetype_setSpritePic(self, owner, z);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue