View Single Post
MuzzMikkel
Member
Join Date: Aug 2010
Location: Denmark
Old 06-01-2011 , 15:46   Re: Keydown not working?
Reply With Quote #3

Quote:
Originally Posted by RollerBlades
this!!! fire_attack(id) add in SH_KEYDOWN
That's allready in SH_KEYDOWN

PHP Code:
case SH_KEYDOWN:
        {
            new 
Float:delayTime get_pcvar_float(pCvarMultiShot)
            if ( 
delayTime >= 0.1 )
            {
                
set_task(delayTime"fire_attack"id__"b")
            }
            
            if ( 
gPlayerInCooldown[id] )
            {
                
sh_sound_deny(id)
                return
            }
        } 
Quote:
Originally Posted by RollerBlades
and stop making new floats and intergers if you're only using them once... use the cvars instead!!
Show what i should delete/edit.

Quote:
Originally Posted by RollerBlades
use this too instead: sh_extra_damage(tid, id, damage, "Ultimater", SH_DMG_NORM, true)
Where should that be?
Otherwise i understood everything ;)
MuzzMikkel is offline
Send a message via MSN to MuzzMikkel