3 seconds hardcoded charge time, plus extra time so the scale pops to full from charging so the state is more obviousįloat flAmount = 1.0f - ((m_flNextFullChargeTime - gpGlobals->curtime) / (3.0f * 1.5f) ) TODO: fix this hardcoded recharge time limit M_hEffects->SetControlPoint( 1, Vector( 0, 0, 0 ) ) M_hEffects->SetControlPointOrientation( 0, vecForward, vecRight, vecUp ) m_hEffects->SetControlPoint( 0, vecOrigin ) ĪngleVectors( vecAngles, &vecForward, &vecRight, &vecUp ) m_hEffects->SetSortOrigin( vecOrigin ) ![]() M_hEffects = ParticleProp()->Create( "tesla_trap_fx", PATTACH_ABSORIGIN_FOLLOW, -1, vecOrigin - GetAbsOrigin() ) If ( !GetAttachment( "effects", vecOrigin, vecAngles ) ) Void C_ASW_TeslaTrap::UpdateEffects( void )
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |