AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Unapproved/Old Plugins (https://forums.alliedmods.net/forumdisplay.php?f=27)
-   -   Turn Back v1.2 (https://forums.alliedmods.net/showthread.php?t=235505)

JusTGo 02-15-2014 12:28

Turn Back v1.2
 
2 Attachment(s)
-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


Groven 02-15-2014 22:39

Re: Turn Back v1.0
 
Nice one :)

JusTGo 02-16-2014 02:22

Re: Turn Back v1.0
 
thnx

ConnorMcLeod 02-17-2014 01:30

Re: Turn Back v1.0
 
"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.

JusTGo 02-17-2014 12:13

Re: Turn Back v1.0
 
Quote:

Originally Posted by ConnorMcLeod (Post 2101203)
"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 .

ConnorMcLeod 02-18-2014 01:57

Re: Turn Back v1.0
 
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).

JusTGo 02-20-2014 02:45

Re: Turn Back v1.0
 
Quote:

Originally Posted by ConnorMcLeod (Post 2101620)
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 


Blizzard_87 02-20-2014 05:36

Re: Turn Back v1.0
 
Quote:

Originally Posted by JusTGo (Post 2102392)
so i change it to cvar ?

yes make cvar for the use type, cvars are a requirement for approval...

UchihaSkills 02-20-2014 08:39

Re: Turn Back v1.1
 
You have to set checkpoints before?

Arkshine 02-20-2014 09:04

Re: Turn Back v1.1
 
You return PLUGIN_HANDLED in the wrong function. Are you sure you updated the plugin ? I still see 1.0.


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

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