Raised This Month: $ Target: $400
 0% 

[SOLVED] Function client_impulse


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
GalegO
Member
Join Date: May 2010
Location: Brazil
Old 10-10-2010 , 22:23   [SOLVED] Function client_impulse
Reply With Quote #1

What the purpose of the function client_impulse?

I don't understand that: http://www.amxmodx.org/funcwiki.php?...ulse&go=search

And I did not find any documentation talking about it

Thanks for help...

EDIT: Thanks guys I understand

Last edited by GalegO; 10-26-2010 at 11:13.
GalegO is offline
ARES[ro]
Senior Member
Join Date: Apr 2010
Old 10-10-2010 , 23:25   Re: Function client_impulse
Reply With Quote #2

Its a forward for when player types in console "impulse <number>"
Like for example flashlight.I know theres some impulse for nightvision idk how does this optimise the game engine by having impulses but it has its purpouse and with that forward u can hook them.
You can hook ur own impulse numbers there so say if a player enters impulse 1337 he gets 100% hp back u can do that like this:
PHP Code:
public client_impulse idimpulse )
{
    switch(
impulse)
    {
        case 
1337set_user_health(id100.0);
        case default: return 
PLUGIN_HANDLED;
    }


Last edited by ARES[ro]; 10-10-2010 at 23:28.
ARES[ro] is offline
GalegO
Member
Join Date: May 2010
Location: Brazil
Old 10-10-2010 , 23:40   Re: Function client_impulse
Reply With Quote #3

Thanks now I understand
GalegO is offline
nikhilgupta345
Veteran Member
Join Date: Aug 2009
Location: Virginia
Old 10-10-2010 , 23:45   Re: Function client_impulse
Reply With Quote #4

Just FYI: I think flashlight using is impulse 100, which is probably what most people use this to detect.
__________________
Quote:
Originally Posted by DarkGod View Post
nikhilgupta generates his plugins using sheer awesome.
If you like my work, please
nikhilgupta345 is offline
Send a message via ICQ to nikhilgupta345 Send a message via Yahoo to nikhilgupta345
GalegO
Member
Join Date: May 2010
Location: Brazil
Old 10-10-2010 , 23:53   Re: Function client_impulse
Reply With Quote #5

Yes, that's right! I don't use this command, but talk with my friend now, and he confirmed this "feature"
GalegO is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 10-11-2010 , 00:24   Re: Function client_impulse
Reply With Quote #6

impulse 201 is a spray decal (in DOD).
__________________
fysiks is offline
Mxnn
Veteran Member
Join Date: Aug 2009
Location: AT MY HOME
Old 10-11-2010 , 14:24   Re: Function client_impulse
Reply With Quote #7

Quote:
Originally Posted by fysiks View Post
impulse 201 is a spray decal (in DOD).
In CS too.
Mxnn is offline
Hunter-Digital
Veteran Member
Join Date: Aug 2006
Location: In the Game [ro]
Old 10-12-2010 , 05:40   Re: Function client_impulse
Reply With Quote #8

"impulse 201" is in any HL mod (including HL) that supports spraypaints, unless it's altered to use a different command.
__________________
Hunter-Digital is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 10-12-2010 , 19:49   Re: Function client_impulse
Reply With Quote #9

Quote:
Originally Posted by Hunter-Digital View Post
"impulse 201" is in any HL mod (including HL) that supports spraypaints, unless it's altered to use a different command.
Good to know. As I don't play those other games I was not entirely sure .
__________________
fysiks is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 10-13-2010 , 01:47   Re: Function client_impulse
Reply With Quote #10

Better to use register_impulse.
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
Reply



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 10:29.


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