void C_CFPlayer::ShowHandMagic(C_BaseEntity* pEnt, CUtlVector<CNewParticleEffect*>& aHandComboEffects, element_t eElements, const char* pszAttachment) { MDLCACHE_CRITICAL_SECTION(); int i; for (i = 0; i < aHandComboEffects.Count(); i++) pEnt->ParticleProp()->StopEmission(aHandComboEffects[i]); aHandComboEffects.RemoveAll(); for (i = 0; i < TOTAL_ELEMENTS; i++) { if (!(eElements&(1<<i))) continue; aHandComboEffects.AddToTail(pEnt->ParticleProp()->Create( VarArgs("hand_%s", ElementToString((element_t)(1<<i))), PATTACH_POINT_FOLLOW, pszAttachment )); } }
/** * This is an easier case because it is just a string interpretation. * * @param current -- The last result. * @param next -- The next value. * * @version * - JR Lewis 2012.03.07 * - Initial version. */ bool NotEqualsComparisonBuiltinsImplementation::InterpretNext_( Element const& current , Element const& next) const { return ElementToString(current) != ElementToString(next); }
/** * This is an easier case because it is just a string interpretation. * * @param current -- The last result. * @param next -- The next value. * * @version * - JR Lewis 2012.03.17 * - Initial version. */ bool GreaterComparisonBuiltinsImplementation::InterpretNext_( Element const& current , Element const& next) const { return ElementToString(current) > ElementToString(next); }
/** * This is an easier case because it is just a string interpretation. * * @param current -- The last result. * @param next -- The next value. * * @version * - JR Lewis 2012.03.17 * - Initial version. */ bool LessThanOrEqualComparisonBuiltinsImplementation::InterpretNext_( Element const& current , Element const& next) const { return ElementToString(current) <= ElementToString(next); }