Raised This Month: $ Target: $400
 0% 

[L4D/L4D2] Hunter high pounce survivor by flying sky ceil


Post New Thread Reply   
 
Thread Tools Display Modes
Paimon
Member
Join Date: Jul 2021
Location: Zootopia
Old 07-24-2023 , 07:05   Re: [L4D/L4D2] Hunter high pounce survivor by flying sky ceil
Reply With Quote #11

Quote:
Originally Posted by zomexf View Post
虽然我没测试,但看了你的代码发现可以精简优化的点
插件在onplayerruncmd频繁调用cpu周期的api内触发使用大量(多余)判断及函 数调用和loop.
这会造成在多特服务器及本地端滞后.一两只ht没什么.当出现在多特服务器ht如果同时产生数量 较多时 滞后将会指数级上涨.
确实是这样,但是我没有想到更好的实现方式,很多调用必须在玩家的每个tick进行才能达到目的 ,另外我不知道你说的多余判断是指什么?
Quote:
这会造成在多特服务器及本地端滞后.一两只ht没什么.当出现在多特服务器ht如果同时产生数量 较多时 滞后将会指数级上涨.
多特的话不清楚,反正在药役模式下测试6特0秒是没太大问题的,至于本地服...我其实很想说我本地服比服务器还流畅
我编程并测试的环境就是本地服,并且除了windows本地服还有一个基于wsl的本地药役服, sv依旧能跑到900以上
__________________

Last edited by Paimon; 02-04-2024 at 23:32.
Paimon is offline
Paimon
Member
Join Date: Jul 2021
Location: Zootopia
Old 07-24-2023 , 07:07   Re: [L4D/L4D2] Hunter high pounce survivor by flying sky ceil
Reply With Quote #12

Quote:
Originally Posted by noto3 View Post
I believe ceiling only works with the default hunter's speed, anything above may not work. Any fix idea for this?
In my server, whatever hunter's speed is it works well. So could you please tell me how you change the hunter's speed?
__________________

Last edited by Paimon; 02-04-2024 at 23:32.
Paimon is offline
Paimon
Member
Join Date: Jul 2021
Location: Zootopia
Old 07-24-2023 , 07:40   Re: [L4D/L4D2] Hunter high pounce survivor by flying sky ceil
Reply With Quote #13

Quote:
Originally Posted by Ruthless1 View Post
Same! Severe lag at start of round...unplayable, please fix.
I didnt get what you mean...
Is server lagged immediately when round start even if no huner or special infected spawn or alive or in ghost?
__________________

Last edited by Paimon; 02-04-2024 at 23:32.
Paimon is offline
noto3
Member
Join Date: Jan 2021
Old 07-24-2023 , 15:05   Re: [L4D/L4D2] Hunter high pounce survivor by flying sky ceil
Reply With Quote #14

Quote:
Originally Posted by Paimon View Post
In my server, whatever hunter's speed is it works well. So could you please tell me how you change the hunter's speed?
sm_cvar z_lunge_power 800
sm_cvar z_hunter_lunge_distance 700
sm_cvar z_hunter_speed 300

Could you let me know your setting?
noto3 is offline
Paimon
Member
Join Date: Jul 2021
Location: Zootopia
Old 07-25-2023 , 01:57   Re: [L4D/L4D2] Hunter high pounce survivor by flying sky ceil
Reply With Quote #15

Quote:
Originally Posted by noto3 View Post
sm_cvar z_lunge_power 800
sm_cvar z_hunter_lunge_distance 700
sm_cvar z_hunter_speed 300

Could you let me know your setting?
Sorry I got it, if you changed lunge power more than 1000, plugins will make mistakes.
I will try to fix it on new version and put source on my github.
If you cant compile it, please tell me and I will attach the .smx file here


Sorry I need to say, if lunge power is over 680, player hunter couldnt use ceiling skill(even if you use some cheat tools).
If lunge power is over 930, bot hunter couldnt use ceiling skill either.
For your problem, I think it is just some miscalculations. I tried to fix and here is the fixed version.
Attached Files
File Type: smx hunter_skyceil.smx (11.7 KB, 158 views)
__________________

Last edited by Paimon; 02-04-2024 at 23:32.
Paimon is offline
Paimon
Member
Join Date: Jul 2021
Location: Zootopia
Old 07-25-2023 , 03:23   Re: [L4D/L4D2] Hunter high pounce survivor by flying sky ceil
Reply With Quote #16

Quote:
Originally Posted by replay_84 View Post
sry didn't read. but guess what eyal282 said..
Quote:
Originally Posted by Ruthless1 View Post
Same! Severe lag at start of round...unplayable, please fix.
Try use this version: Version - 2023.07.25. I have remaked some judgements, hope this could work for you.
__________________

Last edited by Paimon; 02-04-2024 at 23:32.
Paimon is offline
noto3
Member
Join Date: Jan 2021
Old 07-25-2023 , 14:29   Re: [L4D/L4D2] Hunter high pounce survivor by flying sky ceil
Reply With Quote #17

Quote:
Originally Posted by Paimon View Post
Try use this version: Version - 2023.07.25. I have remaked some judgements, hope this could work for you.
Thank you, it works now! could you share the source file for this version?
noto3 is offline
Paimon
Member
Join Date: Jul 2021
Location: Zootopia
Old 07-25-2023 , 23:01   Re: [L4D/L4D2] Hunter high pounce survivor by flying sky ceil
Reply With Quote #18

Quote:
Originally Posted by noto3 View Post
Thank you, it works now! could you share the source file for this version?
You could find it at my github
__________________

Last edited by Paimon; 02-04-2024 at 23:33.
Paimon is offline
NekoYa4r
Junior Member
Join Date: Mar 2020
Old 02-02-2024 , 00:37   Re: [L4D/L4D2] Hunter high pounce survivor by flying sky ceil
Reply With Quote #19

Every hunter high jump and disappeared into the sky, and then my server crashed......
Here is my plugins logs
PHP Code:
L 02/02/2024 12:21:48SourceMod error session started
L 02
/02/2024 12:21:48Info (map "c2m1_highway") (file "D:\Dedicated\L4D2\left4dead2\addons\sourcemod\logs\errors_20240202.log")
L 02/02/2024 12:21:48: [SMException reportedClient 9 is not in game
L 02
/02/2024 12:21:48: [SMBlaminghunter_skyceil.smx
L 02
/02/2024 12:21:48: [SMCall stack trace:
L 02/02/2024 12:21:48: [SM]   [0GetClientAbsOrigin
L 02
/02/2024 12:21:48: [SM]   [1Line 313D:\GitHub\L4D2-Plugins\MyPlugins\hunter_skyceil.sp::TryAimSurvivor
L 02
/02/2024 12:21:48: [SM]   [2Line 203D:\GitHub\L4D2-Plugins\MyPlugins\hunter_skyceil.sp::OnPlayerRunCmd
L 02
/02/2024 12:21:48: [SMException reportedClient 10 is not in game
L 02
/02/2024 12:21:48: [SMBlaminghunter_skyceil.smx
L 02
/02/2024 12:21:48: [SMCall stack trace:
L 02/02/2024 12:21:48: [SM]   [0GetClientAbsOrigin
L 02
/02/2024 12:21:48: [SM]   [1Line 313D:\GitHub\L4D2-Plugins\MyPlugins\hunter_skyceil.sp::TryAimSurvivor
L 02
/02/2024 12:21:48: [SM]   [2Line 203D:\GitHub\L4D2-Plugins\MyPlugins\hunter_skyceil.sp::OnPlayerRunCmd
L 02
/02/2024 12:21:58: [SMException reportedClient 9 is not in game
L 02
/02/2024 12:21:58: [SMBlaminghunter_skyceil.smx
L 02
/02/2024 12:21:58: [SMCall stack trace:
L 02/02/2024 12:21:58: [SM]   [0GetClientAbsOrigin
L 02
/02/2024 12:21:58: [SM]   [1Line 313D:\GitHub\L4D2-Plugins\MyPlugins\hunter_skyceil.sp::TryAimSurvivor
L 02
/02/2024 12:21:58: [SM]   [2Line 203D:\GitHub\L4D2-Plugins\MyPlugins\hunter_skyceil.sp::OnPlayerRunCmd
L 02
/02/2024 12:21:59: [SMException reportedClient 10 is not in game
L 02
/02/2024 12:21:59: [SMBlaminghunter_skyceil.smx
L 02
/02/2024 12:21:59: [SMCall stack trace:
L 02/02/2024 12:21:59: [SM]   [0GetClientAbsOrigin
L 02
/02/2024 12:21:59: [SM]   [1Line 313D:\GitHub\L4D2-Plugins\MyPlugins\hunter_skyceil.sp::TryAimSurvivor
L 02
/02/2024 12:21:59: [SM]   [2Line 203D:\GitHub\L4D2-Plugins\MyPlugins\hunter_skyceil.sp::OnPlayerRunCmd
L 02
/02/2024 12:21:59: [SMException reportedClient 11 is not in game
L 02
/02/2024 12:21:59: [SMBlaminghunter_skyceil.smx
L 02
/02/2024 12:21:59: [SMCall stack trace:
L 02/02/2024 12:21:59: [SM]   [0GetClientAbsOrigin
L 02
/02/2024 12:21:59: [SM]   [1Line 313D:\GitHub\L4D2-Plugins\MyPlugins\hunter_skyceil.sp::TryAimSurvivor
L 02
/02/2024 12:21:59: [SM]   [2Line 203D:\GitHub\L4D2-Plugins\MyPlugins\hunter_skyceil.sp::OnPlayerRunCmd
L 02
/02/2024 12:21:59: [SMException reportedClient 12 is not in game
L 02
/02/2024 12:21:59: [SMBlaminghunter_skyceil.smx 

And this is my server logs when hunter start high jump ceiling:
PHP Code:
L 02/02/2024 13:56:26"(4)Hunter Bot<17><BOT><>" connectedaddress "none"
L 02/02/2024 13:56:26FinishClientPutInServer (17): looking for bots to take over
L 02
/02/2024 13:56:26"(4)Hunter Bot<17><BOT><>" entered the game
L 02
/02/2024 13:56:26"(4)Hunter Bot<17><BOT><Unassigned>" joined team "Infected"
L 02/02/2024 13:56:26: (4)Hunter Bot spawned as a HUNTER
L 02
/02/2024 13:56:26"(4)Hunter Bot<17><BOT><Infected><HUNTER><ALIVE><400+0><setpos_exact 0.00 0.00 -438.00; setang 0.00 0.00 0.00><Area 0>" spawned
L 02
/02/2024 13:56:26Hunter Bot starting a pounce150 damage interrupts
L 02
/02/2024 13:56:26: (1)Hunter Bot starting a pounce150 damage interrupts
L 02
/02/2024 13:56:26"Hunter Bot<13><BOT><Infected>" disconnected (reason "Disconnected: Issued too many commands to server")
L 02/02/2024 13:56:27"(1)Hunter Bot<14><BOT><Infected>" disconnected (reason "Disconnected: Issued too many commands to server")
L 02/02/2024 13:56:27: (2)Hunter Bot starting a pounce150 damage interrupts
L 02
/02/2024 13:56:27: (2)Hunter Bot starting a pounce150 damage interrupts
L 02
/02/2024 13:56:27"(2)Hunter Bot<15><BOT><Infected>" disconnected (reason "Disconnected: Issued too many commands to server")
L 02/02/2024 13:56:27: (3)Hunter Bot starting a pounce150 damage interrupts
L 02
/02/2024 13:56:27"(3)Hunter Bot<16><BOT><Infected>" disconnected (reason "Disconnected: Issued too many commands to server")
L 02/02/2024 13:56:27: (4)Hunter Bot starting a pounce150 damage interrupts
L 02
/02/2024 13:56:27"(4)Hunter Bot<17><BOT><Infected>" disconnected (reason "Disconnected: Issued too many commands to server"

Last edited by NekoYa4r; 02-02-2024 at 02:27.
NekoYa4r is offline
Paimon
Member
Join Date: Jul 2021
Location: Zootopia
Old 02-02-2024 , 04:05   Re: [L4D/L4D2] Hunter high pounce survivor by flying sky ceil
Reply With Quote #20

Quote:
Originally Posted by NekoYa4r View Post
Here is my plugins logs
PHP Code:
L 02/02/2024 12:21:59: [SMCall stack trace:
L 02/02/2024 12:21:59: [SM]   [0GetClientAbsOrigin
L 02
/02/2024 12:21:59: [SMException reportedClient 12 is not in game
L 02
/02/2024 12:21:59: [SMBlaminghunter_skyceil.smx 
And this is my server logs when hunter start high jump ceiling:
PHP Code:
L 02/02/2024 13:56:26"Hunter Bot<13><BOT><Infected>" disconnected (reason "Disconnected: Issued too many commands to server"
Seems that I got the reason, it's not the plugin's fault:
PHP Code:
GetClientAbsOrigin(sursurpos);
GetClientAbsOrigin(hunterhtpos); // Error occurred because hunter was kicked by console.

MakeVectorFromPoints(htpossurposatkang); 
Nothing would be changed because it's unpredictable.
The real solution should be this:
Add sv_quota_stringcmdspersecond "999999" to your cfg/server.cfg

Last of all, thanks for your report!
__________________

Last edited by Paimon; 02-02-2024 at 04:08.
Paimon 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 13:36.


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