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

Turn Back v1.2


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   ALL        Category:   General Purpose       
JusTGo
Veteran Member
Join Date: Mar 2013
Old 02-15-2014 , 12:28   Turn Back v1.2
Reply With Quote #1

-Description:-

a simple this plugin that let you do an instant turn. it can be used in deathrun where there is traps and you want to avoid them in the last sec...etc

-Usage-

- Press J button (which is bind to "cheer" command) -> Default Button

-Credits-

ConnorMcLeod For help with changing player position.

-Change Log-
Code:
v1.0:
- Initial release

v1.1:
- Forgot what i did here xD

v1.2:
- Corrected some mistakes
Attached Files
File Type: sma Get Plugin or Get Source (turnback.sma - 406 views - 650 Bytes)
__________________

Last edited by JusTGo; 08-01-2019 at 05:29.
JusTGo is offline
Groven
AlliedModders Donor
Join Date: Apr 2011
Location: Sweden
Old 02-15-2014 , 22:39   Re: Turn Back v1.0
Reply With Quote #2

Nice one
__________________
Groven is offline
JusTGo
Veteran Member
Join Date: Mar 2013
Old 02-16-2014 , 02:22   Re: Turn Back v1.0
Reply With Quote #3

thnx
__________________
JusTGo is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 02-17-2014 , 01:30   Re: Turn Back v1.0
Reply With Quote #4

"walk" in not a cs command, if you want to keep it as a custom command, then you need to return PLUGIN_HANDLE to prevent cs from throwing "unknown command" in player console.

I think you are confused with command +speed, this command is not hookable on server.
Maybe you have an alias "walk" in userconfig.cfg and you forgot about it ;)

If you want to keep the custom command, then i suggest to rename it to something not common, as amx_backturn or something like that.
__________________
- tired and retired -

- my plugins -

Last edited by ConnorMcLeod; 02-17-2014 at 01:49.
ConnorMcLeod is offline
JusTGo
Veteran Member
Join Date: Mar 2013
Old 02-17-2014 , 12:13   Re: Turn Back v1.0
Reply With Quote #5

Quote:
Originally Posted by ConnorMcLeod View Post
"walk" in not a cs command, if you want to keep it as a custom command, then you need to return PLUGIN_HANDLE to prevent cs from throwing "unknown command" in player console.

I think you are confused with command +speed, this command is not hookable on server.
Maybe you have an alias "walk" in userconfig.cfg and you forgot about it ;)

If you want to keep the custom command, then i suggest to rename it to something not common, as amx_backturn or something like that.
You are right i was confused wiht other games and walk animation in cs models and i cheked my userconfig it have : bind "SHIFT" "+speed"
so i change walk >> speed and put return PLUGIN_HANDLED.

OFF TOPIC:
is it possoble to detect if player was hitted from back or i just chek if the victim see the attacker and then chek the attacker angle .
__________________
JusTGo is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 02-18-2014 , 01:57   Re: Turn Back v1.0
Reply With Quote #6

Update then

Also, variable g_UseType is useless, is exactly same as USE_TYPE.
That kind of customization should be out of the plugin though (release rules say no hardcoded things).
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
JusTGo
Veteran Member
Join Date: Mar 2013
Old 02-20-2014 , 02:45   Re: Turn Back v1.0
Reply With Quote #7

Quote:
Originally Posted by ConnorMcLeod View Post
Update then

Also, variable g_UseType is useless, is exactly same as USE_TYPE.
That kind of customization should be out of the plugin though (release rules say no hardcoded things).
so i change it to cvar ?

PHP Code:
updated v1.1 
__________________

Last edited by JusTGo; 02-20-2014 at 02:54.
JusTGo is offline
Blizzard_87
Veteran Member
Join Date: Oct 2012
Old 02-20-2014 , 05:36   Re: Turn Back v1.0
Reply With Quote #8

Quote:
Originally Posted by JusTGo View Post
so i change it to cvar ?
yes make cvar for the use type, cvars are a requirement for approval...
__________________
Blizzard_87 is offline
UchihaSkills
Senior Member
Join Date: May 2013
Location: Germany
Old 02-20-2014 , 08:39   Re: Turn Back v1.1
Reply With Quote #9

You have to set checkpoints before?
UchihaSkills is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 02-20-2014 , 09:04   Re: Turn Back v1.1
Reply With Quote #10

You return PLUGIN_HANDLED in the wrong function. Are you sure you updated the plugin ? I still see 1.0.
__________________
Arkshine 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 12:01.


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