Add PushSound property and Slide state
First Commit, hip hip hooray!
This commit is contained in:
parent
2a9e28d949
commit
9af664d117
7 changed files with 39 additions and 0 deletions
|
|
@ -280,6 +280,7 @@ void AActor::Serialize(FSerializer &arc)
|
|||
A("bouncesound", BounceSound)
|
||||
A("wallbouncesound", WallBounceSound)
|
||||
A("crushpainsound", CrushPainSound)
|
||||
A("pushsound", PushSound)
|
||||
A("speed", Speed)
|
||||
A("floatspeed", FloatSpeed)
|
||||
A("mass", Mass)
|
||||
|
|
@ -3313,6 +3314,21 @@ DEFINE_ACTION_FUNCTION(AActor, PlayActiveSound)
|
|||
return 0;
|
||||
}
|
||||
|
||||
void AActor::PlayPushSound()
|
||||
{
|
||||
if (PushSound && !S_IsActorPlayingSomething(this, CHAN_VOICE, -1))
|
||||
{
|
||||
S_Sound(this, CHAN_VOICE, 0, PushSound, 1, ATTN_IDLE);
|
||||
}
|
||||
}
|
||||
|
||||
DEFINE_ACTION_FUNCTION(AActor, PlayPushSound)
|
||||
{
|
||||
PARAM_SELF_PROLOGUE(AActor);
|
||||
self->PlayPushSound();
|
||||
return 0;
|
||||
}
|
||||
|
||||
bool AActor::IsOkayToAttack (AActor *link)
|
||||
{
|
||||
// Standard things to eliminate: an actor shouldn't attack itself,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue