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

[SOLVED] Knife distance changer using Orpheu


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
yokomo
Surprise Ascot!
Join Date: May 2010
Location: Malaysia
Old 02-06-2012 , 15:54   [SOLVED] Knife distance changer using Orpheu
Reply With Quote #1

Hi,

Quote:
Originally Posted by Arkshine View Post
A simple and efficient way would be to patch directly the value with orpheu.
So i'm requesting a plugin based on Orpheu module to change default knife swing & stab distance.

Last edited by yokomo; 04-22-2012 at 14:47. Reason: Solved
yokomo is offline
Old 02-13-2012, 14:10
yokomo
This message has been deleted by Exolent[jNr]. Reason: Don't bump until 2 weeks have passed since last post.
yokomo
Surprise Ascot!
Join Date: May 2010
Location: Malaysia
Old 02-24-2012 , 07:26   Re: [REQ] Knife distance changer using Orpheu
Reply With Quote #2

Ok bring up my post. Can someone do this? for example i want to change swing range to 32 and stab range 48.
__________________
Team-MMG CS1.6 Servers:
✅ MultiMod -- 103.179.44.152:27016
✅ Zombie Plague -- 103.179.44.152:27015
✅ Zombie Escape -- 103.179.44.152:27017
✅ Klassik Kombat -- 103.179.44.152:27018
✅ Boss-Battle -- 103.179.44.152:27019
yokomo is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 02-24-2012 , 09:52   Re: [REQ] Knife distance changer using Orpheu
Reply With Quote #3

Is not already made somewhere ?

Well, will do it if not.

[EDIT] done, just need testing now, will post it later.
__________________

Last edited by Arkshine; 02-24-2012 at 10:39.
Arkshine is offline
yokomo
Surprise Ascot!
Join Date: May 2010
Location: Malaysia
Old 02-24-2012 , 12:00   Re: [REQ] Knife distance changer using Orpheu
Reply With Quote #4

Quote:
Originally Posted by Arkshine View Post
Is not already made somewhere ?

Well, will do it if not.

[EDIT] done, just need testing now, will post it later.
There is no such knife range changer plugin using Orpheu yet. If you make it then it would be the 1st plugin that using Orpheu.
__________________
Team-MMG CS1.6 Servers:
✅ MultiMod -- 103.179.44.152:27016
✅ Zombie Plague -- 103.179.44.152:27015
✅ Zombie Escape -- 103.179.44.152:27017
✅ Klassik Kombat -- 103.179.44.152:27018
✅ Boss-Battle -- 103.179.44.152:27019
yokomo is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 02-25-2012 , 10:27   Re: [REQ] Knife distance changer using Orpheu
Reply With Quote #5

Sorry for the delay, I had some boring issues. At the start I was using the Replace native to find and replace a value, but was not working. The address in the memory where the value is, depending the os and hlds version, can be accessed directly or in the data segment. I wanted to make something somehow "universal", so it took me some times.

Anyway, test it and tell me.

There are 2 commands: "knife_swing_distance" and "knife_stab_distance". Don't forget to put them in a config file with the wanted value.

Unzip in amxmodx/.
Attached Files
File Type: zip Custom_Knife_Distance(v1.0.1).zip (11.8 KB, 393 views)
__________________

Last edited by Arkshine; 02-26-2012 at 08:22.
Arkshine is offline
yokomo
Surprise Ascot!
Join Date: May 2010
Location: Malaysia
Old 02-25-2012 , 10:55   Re: [REQ] Knife distance changer using Orpheu
Reply With Quote #6

Quote:
Originally Posted by Arkshine View Post
Sorry for the delay, I had some boring issues. At the start I was using the Replace native to find and replace a value, but was not working. The address in the memory where the value is, depending the os and hlds version, can be accessed directly or in the data segment. I wanted to make something somehow "universal", so it took me some times.

Anyway, test it and tell me.

There are 2 cvars : "knife_swing_distance" and "knife_stab_distance". I'm using Cvar Utilities, so any changes are real time, and don't forget to put them in a config file with the wanted value.

Unzip in amxmodx/.
Tested and works fine is windows HLDS 5408
Code:
        [Custom Knife Distance] Found "Swing" distance value address (0xfd864)
        [Custom Knife Distance] Found "Stab" distance value address (0xfd86c)
Thanks. So this can be use in Condition Zero too?
__________________
Team-MMG CS1.6 Servers:
✅ MultiMod -- 103.179.44.152:27016
✅ Zombie Plague -- 103.179.44.152:27015
✅ Zombie Escape -- 103.179.44.152:27017
✅ Klassik Kombat -- 103.179.44.152:27018
✅ Boss-Battle -- 103.179.44.152:27019
yokomo is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 02-25-2012 , 11:01   Re: [REQ] Knife distance changer using Orpheu
Reply With Quote #7

Oh, well, no idea. Test & see & report.
__________________
Arkshine is offline
hleV
Veteran Member
Join Date: Mar 2007
Location: Lithuania
Old 02-25-2012 , 11:02   Re: [REQ] Knife distance changer using Orpheu
Reply With Quote #8

It's slash, not swing
hleV is offline
yokomo
Surprise Ascot!
Join Date: May 2010
Location: Malaysia
Old 02-25-2012 , 11:23   Re: [REQ] Knife distance changer using Orpheu
Reply With Quote #9

Found bug when client disconnect from server. It clash with Hamsandwich module.

bug:
Code:
L 02/26/2012 - 00:11:45: Start of error session.
L 02/26/2012 - 00:11:45: Info (map "de_dust2") (file "addons/amxmodx/logs/error_20120226.log")
L 02/26/2012 - 00:11:45: [HAMSANDWICH] Failed to retrieve classtype for "player", hook for "fw_ResetMaxSpeed_Post" not active.
L 02/26/2012 - 00:11:45: [AMXX] Displaying debug trace (plugin "cs_maxspeed_api_mmg.amxx")
L 02/26/2012 - 00:11:45: [AMXX] Run time error 10: native error (native "RegisterHam")
L 02/26/2012 - 00:11:45: [AMXX]    [0] cs_maxspeed_api_mmg.sma::plugin_init (line 37)
L 02/26/2012 - 00:11:45: [HAMSANDWICH] Failed to retrieve classtype for "weapon_p228", hook for "fw_Item_Deploy_Post" not active.
L 02/26/2012 - 00:11:45: [AMXX] Displaying debug trace (plugin "cs_weap_models_api.amxx")
L 02/26/2012 - 00:11:45: [AMXX] Run time error 10: native error (native "RegisterHam")
L 02/26/2012 - 00:11:45: [AMXX]    [0] cs_weap_models_api.sma::plugin_init (line 49)
L 02/26/2012 - 00:13:05: Invalid array handle provided (0)
L 02/26/2012 - 00:13:05: [AMXX] Displaying debug trace (plugin "cs_weap_models_api.amxx")
L 02/26/2012 - 00:13:05: [AMXX] Run time error 10: native error (native "ArrayDeleteItem")
L 02/26/2012 - 00:13:05: [AMXX]    [0] cs_weap_models_api.sma::RemoveCustomViewModel (line 248)
L 02/26/2012 - 00:13:05: [AMXX]    [1] cs_weap_models_api.sma::client_disconnect (line 301)
L 02/26/2012 - 00:13:57: Invalid array handle provided (0)
L 02/26/2012 - 00:13:57: [AMXX] Displaying debug trace (plugin "cs_weap_models_api.amxx")
L 02/26/2012 - 00:13:57: [AMXX] Run time error 10: native error (native "ArrayDeleteItem")
L 02/26/2012 - 00:13:57: [AMXX]    [0] cs_weap_models_api.sma::RemoveCustomViewModel (line 248)
L 02/26/2012 - 00:13:57: [AMXX]    [1] cs_weap_models_api.sma::client_disconnect (line 301)
HLDS Version:
Code:
status
hostname:  WB Server
version :  48/1.1.2.6 5408 insecure  (10)
tcp/ip  :  192.168.1.254:27015
map     :  de_dust2 at: 0 x, 0 y, 0 z
players :  15 active (32 max)

#      name userid uniqueid frag time ping loss adr
# 1 "The Orange" 16 BOT   4 04:10    0    0
# 2 "xXNight StalkerXx" 17 BOT   1 04:10    0    0
# 3 "ZoMB!e K!LLeR ?" 18 BOT   1 04:10    0    0
# 4   "bWin" 19 BOT   0 04:10    0    0
# 5 "becomenoobwhensoolongnoplay" 20 BOT   0 04:10    0    0
# 6 "Ravenous" 21 BOT   1 04:10    0    0
# 7 "Ma[X]iMo" 22 BOT   1 04:10    0    0
# 8   "Ejik" 23 BOT   2 04:10    0    0
# 9 "-=f|r=-" 24 BOT   0 04:10    0    0
#10 "VIP_[H]OlYsh!T" 25 BOT   1 04:10    0    0
#11 ".:[NO-sXe-I]:. FeRRis | TPR" 26 BOT   2 04:10    0    0
#12 "The Last Cock Bender" 27 BOT   0 04:10    0    0
#13 "[X]Clasher" 28 BOT   2 04:10    0    0
#14 "[Genetic 12]Tifa" 29 BOT   0 04:10    0    0
#15 "Ztrick.Lyla.AmmOShot.123865/0as" 30 BOT   2 04:10    0    0
15 users
Metamod modules:
Code:
meta list
Currently loaded plugins:
      description      stat pend  file              vers      src   load  unlod
 [ 1] UnicodePatch     RUN   -    upatch.dll        v1.0      ini   Start Never
 [ 2] mmtimer          RUN   -    mmtimer.dll       v1.6      ini   ANY   Never
 [ 3] AMX Mod X        RUN   -    amxmodx_mm.dll    v1.8.1.3  ini   Start ANY
 [ 4] Enable CSBot     RUN   -    csbot.dll         vOct 25   ini   ANY   Pause
 [ 5] Fun              RUN   -    fun_amxx.dll      v1.8.1.3  pl3   ANY   ANY
 [ 6] Engine           RUN   -    engine_amxx.dll   v1.8.1.3  pl3   ANY   ANY
 [ 7] FakeMeta         RUN   -    fakemeta_amxx.dl  v1.8.1.3  pl3   ANY   ANY
 [ 8] CStrike          RUN   -    cstrike_amxx.dll  v1.8.1.3  pl3   ANY   ANY
 [ 9] CSX              RUN   -    csx_amxx.dll      v1.8.1.3  pl3   ANY   ANY
 [10] Ham Sandwich     RUN   -    hamsandwich_amxx  v1.8.1.3  pl3   ANY   ANY
 [11] Orpheu           RUN   -    orpheu_amxx.dll   v2.3a     pl3   ANY   ANY
 [12] CS Team Changer  RUN   -    cs_team_changer_  v1.0b     pl3   ANY   ANY
 [13] Acfun Guard      RUN   -    acg_amxx.dll      v         pl3   ANY   Never
 [14] Cvar Utilities   RUN   -    cvar_util_amxx.d  v1.3.1    pl3   ANY   ANY
14 plugins, 14 running
Amxx Plugins:
Code:
amxx plugins
Currently loaded plugins:
       name                    version     author            file             status
 [  1] Advanced Bans           0.8.1       Exolent           advanced_bans.a  running
 [  2] Admin Base              1.8.1.3746  AMXX Dev Team     admin.amxx       running
 [  3] Admin Commands          1.8.1.3746  AMXX Dev Team     admincmd.amxx    running
 [  4] Menus Front-End         1.8.1.3746  AMXX Dev Team     menufront.amxx   running
 [  5] Commands Menu           1.8.1.3746  AMXX Dev Team     cmdmenu.amxx     running
 [  6] Players Menu            1.8.1.3746  AMXX Dev Team     plmenu_ab_base.  running
 [  7] Teleport Menu           1.8.1.3746  AMXX Dev Team     telemenu.amxx    running
 [  8] Admin Chat              1.8.1.3746  AMXX Dev Team     adminchat.amxx   running
 [  9] Admin Votes             1.8.1.3746  AMXX Dev Team     adminvote_ab_ba  running
 [ 10] get_user_team fix       0.0.1       ConnorMcLeod      get_user_team_f  running
 [ 11] [CS] Ham Hooks for Bot  1.0         WiLS              cs_ham_bots_api  debug
 [ 12] [CS] MaxSpeed API       1.0         WiLS              cs_maxspeed_api  debug
 [ 13] [CS] Weapon Models API  1.1         WiLS              cs_weap_models_  debug
 [ 14] No Shield               0.2.0       ConnorMcLeod      noshield.amxx    running
 [ 15] Server Cvars Unlocker   1.0.1       Arkshine          server_cvars_un  running
 [ 16] Loading Sound           1.0         Amxx User         loadingsound.am  running
 [ 17] Camera View             0.0.2       ConnorMcLeod      CS_3rd_Cam.amxx  running
 [ 18] ACG User Status Fix     1.0.0       wbyokomo          acg_putinserver  running
 [ 19] CU: amx_cvar Fix        1.0         Arkshine          cu_amx_cvar_fix  debug
 [ 20] Custom Knife Distance   1.0         Arkshine          custom_kinfe_di  debug
20 plugins, 20 running
This bug only happen when i use Custom Knife Distance. If disable = no bug. Forgot to tell, my hlds is running cstrike game.
__________________
Team-MMG CS1.6 Servers:
✅ MultiMod -- 103.179.44.152:27016
✅ Zombie Plague -- 103.179.44.152:27015
✅ Zombie Escape -- 103.179.44.152:27017
✅ Klassik Kombat -- 103.179.44.152:27018
✅ Boss-Battle -- 103.179.44.152:27019

Last edited by yokomo; 02-25-2012 at 11:28.
yokomo is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 02-25-2012 , 12:39   Re: [REQ] Knife distance changer using Orpheu
Reply With Quote #10

Absolutely no idea how my plugin patchings a specific value in a knife function could fuck up your others plugins.

Can you post or give link to these plugins ?
__________________

Last edited by Arkshine; 02-25-2012 at 12:39.
Arkshine 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 00:12.


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