Raised This Month: $ Target: $400
 0% 

Don't loose any speed when stabbed.


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
D-TOX
Member
Join Date: Mar 2008
Old 11-23-2009 , 13:56   Don't loose any speed when stabbed.
Reply With Quote #1

Hi ! I've tried to search with a couple of different keywords and i didn't find anything. I'd like to request a non-speedloosing stab plugin. I want you to not loose any speed when your being stabbed by a knife, well stupid me, i guess it goes for gunshots aswell. I guess its pretty simple to do and if so can somebody make it for me / all others who wants it ?
__________________
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░
░█▀▀ ░█▀█ ░█ ░█▀▀ ░░█▀▀ ░█▀█ ░█ ░█░░░
░█▀▀ ░█▀▀ ░█ ░█ ░░░░█▀▀ ░█▀█ ░█ ░█░░░
░▀▀▀ ░▀ ░░░▀ ░▀▀▀ ░░▀ ░░░▀░▀ ░▀ ░▀▀▀░
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░
D-TOX is offline
Styles
Veteran Member
Join Date: Jul 2004
Location: California
Old 11-23-2009 , 14:10   Re: Don't loose any speed when stabbed.
Reply With Quote #2

So.. basically you never lose speed?
Styles is offline
Send a message via AIM to Styles
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 11-23-2009 , 14:22   Re: Don't loose any speed when stabbed.
Reply With Quote #3

Try :

Code:
#include <amxmodx> #include <fakemeta> #include <hamsandwich> const m_fPainShock = 108; new gMaxClients; public plugin_init() {     register_plugin( "Knife: Pain Shock Free", "1.0.0", "Arkshine" );     RegisterHam( Ham_TakeDamage, "player", "Player_TakeDamage", 1 );     gMaxClients = get_maxplayers(); } public Player_TakeDamage( const Victim, const Inflictor, const Attacker ) {     if ( 1 <= Attacker <= gMaxClients && get_user_weapon( Attacker ) == CSW_KNIFE )     {         set_pdata_float( Victim, m_fPainShock, 1.0 );     } }
__________________

Last edited by Arkshine; 11-25-2009 at 12:12.
Arkshine is offline
Styles
Veteran Member
Join Date: Jul 2004
Location: California
Old 11-23-2009 , 14:35   Re: Don't loose any speed when stabbed.
Reply With Quote #4

Take out shottie too Arkshine lol ;) but nice didn't know about that offset wtf! Where do you keep finding these!
Styles is offline
Send a message via AIM to Styles
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 11-23-2009 , 14:36   Re: Don't loose any speed when stabbed.
Reply With Quote #5

This offset was found by Connor ; he had posted in the offset threads in the tutorial section.
__________________
Arkshine is offline
D-TOX
Member
Join Date: Mar 2008
Old 11-23-2009 , 15:32   Re: Don't loose any speed when stabbed.
Reply With Quote #6

Quote:
Originally Posted by Arkshine View Post
Try :

Code:
#include <amxmodx> #include <fakemeta> #include <hamsandwich> const m_fPainShock = 108;

public plugin_init() { register_plugin( "Knife: Pain Shock Free", "1.0.0", "Arkshine" );
RegisterHam( Ham_TakeDamage, "player", "Player_TakeDamage", 1 );
} public Player_TakeDamage( const Victim, const Inflictor, const Attacker ) { if ( get_user_weapon( Attacker ) == CSW_KNIFE ) { set_pdata_float( Victim, m_fPainShock, 1.0 );
} }

Alright, now ive got some bugs in it. Added debug mode to it so I can report.


PHP Code:
L 11/24/2009 20:10:48: [AMXXRun time error 10native error (native "get_use
r_weapon"
)
L 11/24/2009 20:10:48: [AMXX] [0ijump_noslowstab.sma::Player_TakeDamage (
line 14)
DaHl DuNkA FeTt | : hus
DaHl DuNkA FeTt | : kom
L 11
/24/2009 20:10:55Invalid player id 0
L 11
/24/2009 20:10:55: [AMXXDisplaying debug trace (plugin "ijump_noslowstab
.amxx"
)
L 11/24/2009 20:10:55: [AMXXRun time error 10native error (native "get_use
r_weapon"
)
L 11/24/2009 20:10:55: [AMXX] [0ijump_noslowstab.sma::Player_TakeDamage (
line 14)
L 11/24/2009 20:10:56Invalid player id 0
L 11
/24/2009 20:10:56: [AMXXDisplaying debug trace (plugin "ijump_noslowstab
.amxx"
)
L 11/24/2009 20:10:56: [AMXXRun time error 10native error (native "get_use
r_weapon"
)
L 11/24/2009 20:10:56: [AMXX] [0ijump_noslowstab.sma::Player_TakeDamage (
line 14)
Dropped croxez from server
Reason
Client sent 'drop'
./hlds_runline 32121782 Segmentation fault $HL_CMD 
__________________
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░
░█▀▀ ░█▀█ ░█ ░█▀▀ ░░█▀▀ ░█▀█ ░█ ░█░░░
░█▀▀ ░█▀▀ ░█ ░█ ░░░░█▀▀ ░█▀█ ░█ ░█░░░
░▀▀▀ ░▀ ░░░▀ ░▀▀▀ ░░▀ ░░░▀░▀ ░▀ ░▀▀▀░
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░

Last edited by D-TOX; 11-24-2009 at 14:58. Reason: Bug.
D-TOX is offline
Kat
BANNED
Join Date: Nov 2009
Old 11-25-2009 , 12:07   Re: Don't loose any speed when stabbed.
Reply With Quote #7

Well, I need it too. It sux when you got stabed and you lose speed in Hide and Seek mod.

Last edited by Kat; 11-25-2009 at 12:11.
Kat is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 11-25-2009 , 12:13   Re: Don't loose any speed when stabbed.
Reply With Quote #8

Quote:
Alright, now ive got some bugs in it. Added debug mode to it so I can report.
Updated.
__________________
Arkshine is offline
Kat
BANNED
Join Date: Nov 2009
Old 11-26-2009 , 09:14   Re: Don't loose any speed when stabbed.
Reply With Quote #9

Thanks, working good
Kat 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 05:11.


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