Raised This Month: $ Target: $400
 0% 

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


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Paimon
Member
Join Date: Jul 2021
Location: Zootopia
Plugin ID:
8474
Plugin Version:
2023.07.25
Plugin Category:
Gameplay
Plugin Game:
Left 4 Dead
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Make ai hunter high pounce 25 to survivor by flying sky-ceil
    Old 05-31-2023 , 07:57   [L4D/L4D2] Hunter high pounce survivor by flying sky ceil
    Reply With Quote #1

    Description:

    This plugin makes ai hunter high pounce survivor by flying sky-ceil.

    If you got lag while using plugin.
    Add sm_cvar sv_quota_stringcmdspersecond "999999" to your cfg/server.cfg
    This may fix the problem.
    Thanks for @NekoYa4r 's report.

    Usage:

    Just put it into 'plugins' folder.

    Cvars:

    hsc_enable: Turn on/off the plugin.
    hsc_stop_dis: The distance that plugin won't take control of ai hunter.
    hsc_max_leap: Max times hunter leap to sky.
    hsc_human: Turn on/off player hunter control.
    hsc_limit: Max count that hunters fly sky-ceil at the time.
    hsc_reset_interval: After this cvar time hunter's leap count reset to 0.

    Source:

    You can find latest source at my GitHub:
    Paimon-Kawaii - L4D2-Plugins/MyPlugins/HunterSkyCeil

    Download:

    A fixed version here: Version - 2023.07.25.
    If you have some problem while running the plugin, try using fixed version above.
    Attached Files
    File Type: smx hunter_skyceil.smx (10.0 KB, 432 views)
    __________________

    Last edited by Paimon; 02-04-2024 at 23:31.
    Paimon is offline
    apples1949
    Member
    Join Date: Apr 2021
    Location: Asia
    Old 05-31-2023 , 08:32   Re: [L4D/L4D2] Hunter high pounce survivor by flying sky ceil
    Reply With Quote #2

    I believe this plugin will be very interesting in my versus server
    apples1949 is offline
    replay_84
    Senior Member
    Join Date: Jun 2021
    Old 06-04-2023 , 09:39   Re: [L4D/L4D2] Hunter high pounce survivor by flying sky ceil
    Reply With Quote #3

    I put this in my plugin folder on my windows local server and as soon as I spawn 3 hunters my fps go solid 7 (l4d1)

    Last edited by replay_84; 06-04-2023 at 09:40.
    replay_84 is offline
    Paimon
    Member
    Join Date: Jul 2021
    Location: Zootopia
    Old 06-05-2023 , 09:13   Re: [L4D/L4D2] Hunter high pounce survivor by flying sky ceil
    Reply With Quote #4

    Quote:
    Originally Posted by replay_84 View Post
    I put this in my plugin folder on my windows local server and as soon as I spawn 3 hunters my fps go solid 7 (l4d1)
    Could you please provide error logs?
    __________________

    Last edited by Paimon; 02-08-2024 at 07:08.
    Paimon is offline
    Ruthless1
    AlliedModders Donor
    Join Date: Oct 2019
    Old 07-18-2023 , 09:14   Re: [L4D/L4D2] Hunter high pounce survivor by flying sky ceil
    Reply With Quote #5

    Quote:
    Originally Posted by replay_84 View Post
    I put this in my plugin folder on my windows local server and as soon as I spawn 3 hunters my fps go solid 7 (l4d1)
    Same! Severe lag at start of round...unplayable, please fix.
    Ruthless1 is offline
    eyal282
    Veteran Member
    Join Date: Aug 2011
    Old 07-18-2023 , 17:30   Re: [L4D/L4D2] Hunter high pounce survivor by flying sky ceil
    Reply With Quote #6

    Quote:
    Originally Posted by Paimon View Post
    Could you please provide error logs?
    You're asking for the wrong thing. Error logs will not indicate lag.

    I read your code, and use of TR_TraceRayFilter is the first suspect of lag within OnPlayerRunCmd, a function that runs over 100 times per second, maybe even 1000 times per second.
    __________________
    I am available to make plugins for pay.

    Discord: Eyal282#1334
    eyal282 is offline
    replay_84
    Senior Member
    Join Date: Jun 2021
    Old 07-20-2023 , 14:48   Re: [L4D/L4D2] Hunter high pounce survivor by flying sky ceil
    Reply With Quote #7

    Quote:
    Originally Posted by Paimon View Post
    Could you please provide error logs?

    sry didn't read. but guess what eyal282 said..
    replay_84 is offline
    noto3
    Member
    Join Date: Jan 2021
    Old 07-21-2023 , 14:16   Re: [L4D/L4D2] Hunter high pounce survivor by flying sky ceil
    Reply With Quote #8

    I believe ceiling only works with the default hunter's speed, anything above may not work. Any fix idea for this?
    noto3 is offline
    zomexf
    Junior Member
    Join Date: Jul 2019
    Old 07-22-2023 , 03:40   Re: [L4D/L4D2] Hunter high pounce survivor by flying sky ceil
    Reply With Quote #9

    虽然我没测试,但看了你的代码发现可以精简优化的点
    插件在OnPlayerRunCmd频繁调用CPU周期的API内触发使用大量(多余)判断及函 数调用和Loop.
    这会造成在多特服务器及本地端滞后.一两只ht没什么.当出现在多特服务器ht如果同时产生数量 较多时 滞后将会指数级上涨.
    __________________
    Sorry, My English is bad
    zomexf is offline
    Paimon
    Member
    Join Date: Jul 2021
    Location: Zootopia
    Old 07-24-2023 , 06:59   Re: [L4D/L4D2] Hunter high pounce survivor by flying sky ceil
    Reply With Quote #10

    Quote:
    Originally Posted by eyal282 View Post
    You're asking for the wrong thing. Error logs will not indicate lag.

    I read your code, and use of TR_TraceRayFilter is the first suspect of lag within OnPlayerRunCmd, a function that runs over 100 times per second, maybe even 1000 times per second.
    First, for local server, errors will output to server console, which means too much errors will case lag too.

    Second, As you say, if no limit for this function, it will run more than 100 time per second.
    But, I do limit it. With g_iLastRayTick array and TRACE_TICK(100), I had limited it to be called once per 100 ticks for a hunter.

    And on my servers, both linux and windows with no lags.
    I will test this function call times later.
    In my test, this function only calls once or twice per second(under 100tick/s server) for a client(hunter).
    __________________

    Last edited by Paimon; 02-08-2024 at 07:08.
    Paimon 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 14:01.


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