MCPcopy Create free account
hub / github.com/bfbbdecomp/bfbb / PlayerKiltMe

Method PlayerKiltMe

src/SB/Game/zNPCTypeCommon.cpp:1944–1967  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1942}
1943
1944void zNPCCommon::PlayerKiltMe()
1945{
1946 en_xEventTags r30 = eEventUnknown;
1947 S32 r31 = this->SelfType();
1948
1949 if (!SomethingWonderful() && g_tmr_talkless < 0.0f)
1950 {
1951 g_tmr_talkless = 3.0f + (xurand() - 0.5f) * 0.25f * 3.0f;
1952
1953 if ((r31 & 0xFFFFFF00) == 'NTR\0')
1954 {
1955 r30 = eEventSituationDestroyedRobot;
1956 }
1957 else if ((r31 & 0xFFFFFF00) == 'NTT\0')
1958 {
1959 r30 = eEventSituationDestroyedTiki;
1960 }
1961
1962 if (r30 != eEventUnknown)
1963 {
1964 zEntEvent(this, &globals.player.ent, r30);
1965 }
1966 }
1967}
1968
1969void zNPCCommon::ISeePlayer()
1970{

Callers 1

GiveRewardMethod · 0.95

Calls 4

SomethingWonderfulFunction · 0.85
xurandFunction · 0.85
SelfTypeMethod · 0.80
zEntEventFunction · 0.50

Tested by

no test coverage detected