MCPcopy Create free account
hub / github.com/StrongPC123/Far-Cry-1-Source-Full / DrawCharacter

Method DrawCharacter

CrySystem/ScriptObjectEntity.cpp:1526–1541  ·  view source on GitHub ↗

! Controls the visibility and drawing of characters @param nPos Number of the character slot @param nMode 0 = Don't draw, 1 = Draw normally, 3 = Draw near @see CScriptObjectEntity::LoadCharacter */

Source from the content-addressed store, hash-verified

1524 @see CScriptObjectEntity::LoadCharacter
1525*/
1526int CScriptObjectEntity::DrawCharacter(IFunctionHandler *pH)
1527{
1528 CHECK_PARAMETERS(2);
1529
1530 int nPos,nMode;
1531 pH->GetParam(1,nPos);
1532 pH->GetParam(2,nMode);
1533
1534 if(m_pEntity)
1535 {
1536 //((IEntityCharacter *)m_pEntity)->DrawCharacter(nPos, nMode == 1);
1537 m_pEntity->GetCharInterface()->DrawCharacter(nPos, nMode );
1538 }
1539
1540 return pH->EndFunction();
1541}
1542
1543int CScriptObjectEntity::SetRegisterInSectors(IFunctionHandler *pH)
1544{

Callers 8

LoadObjectMethod · 0.45
UpdateFirstPersonViewMethod · 0.45
UpdateThirdPersonViewMethod · 0.45
SetViewModeMethod · 0.45
HideLocalPlayerMethod · 0.45
SetWeaponMethod · 0.45
SetViewModeMethod · 0.45
OnDrawMountedWeaponMethod · 0.45

Calls 3

GetCharInterfaceMethod · 0.80
EndFunctionMethod · 0.80
GetParamMethod · 0.45

Tested by

no test coverage detected