| 2043 | } |
| 2044 | |
| 2045 | void 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 | |
| 2074 | qboolean G_PlayerSpawned( void ) |
| 2075 | { |
no test coverage detected