MCPcopy Create free account
hub / github.com/JACoders/OpenJK / G_ReloadSaberData

Function G_ReloadSaberData

code/game/g_client.cpp:2045–2072  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2043}
2044
2045void G_ReloadSaberData( gentity_t *ent )
2046{
2047 //dualSabers should already be set
2048 if ( ent->client->ps.saber[0].name != NULL )
2049 {
2050 WP_SaberParseParms( ent->client->ps.saber[0].name, &ent->client->ps.saber[0], qfalse );
2051 if ( ent->client->ps.saber[0].stylesLearned )
2052 {
2053 ent->client->ps.saberStylesKnown |= ent->client->ps.saber[0].stylesLearned;
2054 }
2055 if ( ent->client->ps.saber[0].singleBladeStyle )
2056 {
2057 ent->client->ps.saberStylesKnown |= ent->client->ps.saber[0].singleBladeStyle;
2058 }
2059 }
2060 if ( ent->client->ps.saber[1].name != NULL )
2061 {
2062 WP_SaberParseParms( ent->client->ps.saber[1].name, &ent->client->ps.saber[1], qfalse );
2063 if ( ent->client->ps.saber[1].stylesLearned )
2064 {
2065 ent->client->ps.saberStylesKnown |= ent->client->ps.saber[1].stylesLearned;
2066 }
2067 if ( ent->client->ps.saber[1].singleBladeStyle )
2068 {
2069 ent->client->ps.saberStylesKnown |= ent->client->ps.saber[1].singleBladeStyle;
2070 }
2071 }
2072}
2073
2074qboolean G_PlayerSpawned( void )
2075{

Callers 2

ClientSpawnFunction · 0.85
ReadGEntitiesFunction · 0.85

Calls 1

WP_SaberParseParmsFunction · 0.70

Tested by

no test coverage detected