Raised This Month: $ Target: $400
 0% 

pev_dmgtime


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
nato
Junior Member
Join Date: Jul 2011
Old 09-01-2013 , 03:58   pev_dmgtime
Reply With Quote #1

PHP Code:
RegisterHam(Ham_Weapon_WeaponIdle"weapon_hegrenade""ham_WeaponIdleHE_Post"1)
RegisterHam(Ham_Think"weapon_hegrenade""ham_ThinkGrenade")

public 
ham_WeaponIdleHE_Post(entity)
{
    static 
id;
    
id get_pdata_cbase(entitym_pPlayer4);

    static 
Float:dmgtime
    pev
(entitypev_dmgtimedmgtime)
    
client_print(idprint_chat"pev_dmgtime = %f",dmgtime)    
}

public 
ham_ThinkGrenade(entity)
{
    
// Invalid entity
    
if (!pev_valid(entity)) return HAM_IGNORED;
    
    static 
id;
    
id get_pdata_cbase(entitym_pPlayer4);
    
    static 
Float:dmgtime
    pev
(entitypev_dmgtimedmgtime)

    
client_print(idprint_chat"pev_dmgtime = %f",  dmgtime)

    return 
HAM_IGNORED;    

Why pev_dmgtime always shows zero?
pev_dmgtime = 0.00000

That's generally not caught
PHP Code:
RegisterHam(Ham_Think"grenade""ham_ThinkGrenade"

Last edited by nato; 09-01-2013 at 03:59.
nato is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 09-01-2013 , 05:31   Re: pev_dmgtime
Reply With Quote #2

dmgtime is not used on weapon_*, it is used when grenage is launched, so when a new entity with class "grenade" has been created.
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 19:10.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode