MCPcopy Create free account
hub / github.com/ZDoom/Raze / DoPlayerBeginCrawl

Function DoPlayerBeginCrawl

source/games/sw/src/player.cpp:3408–3423  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3406//---------------------------------------------------------------------------
3407
3408void DoPlayerBeginCrawl(DSWPlayer* pp)
3409{
3410 DSWActor* plActor = pp->GetActor();
3411
3412 pp->Flags &= ~(PF_FALLING | PF_JUMPING);
3413 pp->Flags |= (PF_CRAWLING);
3414
3415 pp->friction = PLAYER_CRAWL_FRICTION;
3416 pp->p_floor_dist = PLAYER_CRAWL_FLOOR_DIST;
3417 pp->p_ceiling_dist = PLAYER_CRAWL_CEILING_DIST;
3418 pp->DoPlayerAction = DoPlayerCrawl;
3419
3420 //pp->posz = pp->loz - PLAYER_CRAWL_HEIGHT;
3421
3422 NewStateGroup(pp->GetActor(), plActor->user.ActorActionSet->Crawl);
3423}
3424
3425//---------------------------------------------------------------------------
3426//

Callers 4

DoPlayerFallFunction · 0.85
DoPlayerWadeFunction · 0.85
DoPlayerBeginRunFunction · 0.85
DoPlayerRunFunction · 0.85

Calls 2

NewStateGroupFunction · 0.85
GetActorMethod · 0.45

Tested by

no test coverage detected