Raised This Month: $32 Target: $400
 8% 

The way to get grenade throw power


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
FromTheFuture
Senior Member
Join Date: Jan 2013
Old 09-23-2014 , 14:18   The way to get grenade throw power
Reply With Quote #1

This way is correct? Maybe have another way to get this?
PHP Code:
new Floatutime[33], Floatltime[33];
public 
fw_he_attack_Post(weapon)
{
    static 
FloatcurTimecurTime get_gametime();
    new 
id pev(weaponpev_owner);
    
    if(!
utime[id] || curTime ltime[id] > 0.5)
    {
        
utime[id] = curTime;
    }
    else
    if(
curTime utime[id] >= 1.1)
        
client_print(idprint_center"HIGHEST POWER!")
    
    
ltime[id] = curTime;
    

FromTheFuture is offline
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 09-23-2014 , 14:37   Re: The way to get grenade throw power
Reply With Quote #2

grenade_throw forward from csx module ?
__________________
HamletEagle is offline
FromTheFuture
Senior Member
Join Date: Jan 2013
Old 09-23-2014 , 15:10   Re: The way to get grenade throw power
Reply With Quote #3

Quote:
Originally Posted by HamletEagle View Post
grenade_throw forward from csx module ?
I want to get a power
FromTheFuture is offline
SpeeDeeR
Veteran Member
Join Date: Mar 2010
Location: Bulgaria
Old 09-23-2014 , 15:43   Re: The way to get grenade throw power
Reply With Quote #4

Try with grenade_throw forward and measure the vector lenght of the velocity aka speed.
SpeeDeeR is offline
FromTheFuture
Senior Member
Join Date: Jan 2013
Old 09-24-2014 , 04:22   Re: The way to get grenade throw power
Reply With Quote #5

Quote:
Originally Posted by SpeeDeeR View Post
Try with grenade_throw forward and measure the vector lenght of the velocity aka speed.
Okay, and One more question. Can get it with model animation?
FromTheFuture is offline
alan_el_more
Veteran Member
Join Date: Jul 2008
Location: amxmodx-es.com
Old 09-24-2014 , 21:44   Re: The way to get grenade throw power
Reply With Quote #6

What are you trying to do exactly?
__________________
alan_el_more is offline
FromTheFuture
Senior Member
Join Date: Jan 2013
Old 09-24-2014 , 21:58   Re: The way to get grenade throw power
Reply With Quote #7

Quote:
Originally Posted by alan_el_more View Post
What are you trying to do exactly?
I found working code ( my 1'st post ) and I just want to know how I can do it with other methods.
I need it (power) for set damage radius and some more features.
FromTheFuture is offline
FromTheFuture
Senior Member
Join Date: Jan 2013
Old 09-24-2014 , 22:00   Re: The way to get grenade throw power
Reply With Quote #8

If no one has the ideas, I'll leave it.
FromTheFuture is offline
Xalus
Veteran Member
Join Date: Dec 2009
Location: Belgium
Old 09-26-2014 , 12:41   Re: The way to get grenade throw power
Reply With Quote #9

So if I'm right, you wanna give your nades more 'powers', if you hold it longer in your arms ?
__________________
Retired.
Xalus is offline
FromTheFuture
Senior Member
Join Date: Jan 2013
Old 09-26-2014 , 12:49   Re: The way to get grenade throw power
Reply With Quote #10

Quote:
Originally Posted by Xalus View Post
So if I'm right, you wanna give your nades more 'powers', if you hold it longer in your arms ?
Yes, as u can see I do it with my code.
FromTheFuture 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:38.


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