Raised This Month: $51 Target: $400
 12% 

[L4D & L4D2] Left 4 DHooks Direct (1.146) [21-Apr-2024]


Post New Thread Reply   
 
Thread Tools Display Modes
th3y
Junior Member
Join Date: Jan 2014
Old 10-30-2021 , 06:43   Re: [L4D & L4D2] Left 4 DHooks Direct (1.67) [25-Oct-2021]
Reply With Quote #501

Quote:
Originally Posted by HarryPotter View Post
Silvers already did,
the following functions can be called in l4d1



PHP Code:
native int L4D2Direct_GetVSCampaignScore(int teamNumber); 


PHP Code:
native void L4D2Direct_SetVSTankToSpawnThisRound(int roundNumberbool spawn); 


PHP Code:
native int L4D2Direct_SetVSWitchFlowPercent(int roundNumberfloat flow); 


PHP Code:
native float L4D2Direct_GetVSWitchFlowPercent(int roundNumber); 


PHP Code:
native float L4D2Direct_GetVSTankFlowPercent(int roundNumber); 


PHP Code:
native float L4D2Direct_GetMapMaxFlowDistance(); 
Thank you, i thought they were only working for L4D2.
__________________

Last edited by th3y; 10-30-2021 at 06:43.
th3y is offline
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
Old 10-30-2021 , 07:01   Re: [L4D & L4D2] Left 4 DHooks Direct (1.67) [25-Oct-2021]
Reply With Quote #502

Quote:
Originally Posted by Silvers View Post
All Forwards and Natives:
  • Assume everything is L4D1 and L4D2 compatible unless otherwise stated.
When you go through the include file, above every native and forward name that is only for L4D2 it says "Only for L4D2".
__________________
Silvers is offline
Alexmy
Senior Member
Join Date: Oct 2014
Location: Russian Federation
Old 11-01-2021 , 22:58   Re: [L4D & L4D2] Left 4 DHooks Direct (1.67) [25-Oct-2021]
Reply With Quote #503

Hi Silvers.
What about the function of a smoker's tongue attacking a survivor? I looked through and found nothing like it.
__________________
[/URL]
Alexmy is offline
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
Old 11-02-2021 , 04:51   Re: [L4D & L4D2] Left 4 DHooks Direct (1.67) [25-Oct-2021]
Reply With Quote #504

What do you want, a forward or native?
__________________
Silvers is offline
Alexmy
Senior Member
Join Date: Oct 2014
Location: Russian Federation
Old 11-02-2021 , 07:17   Re: [L4D & L4D2] Left 4 DHooks Direct (1.67) [25-Oct-2021]
Reply With Quote #505

Quote:
Originally Posted by Silvers View Post
What do you want, a forward or native?
If possible then make a forward. I would like to see an analogue of the forward L4D_OnVomitedUpon.
__________________
[/URL]
Alexmy is offline
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
Old 11-02-2021 , 09:11   Re: [L4D & L4D2] Left 4 DHooks Direct (1.67) [25-Oct-2021]
Reply With Quote #506

You want to block the tongue catching someone? If it's just to know when someones been grabbed theres an event for that.
__________________
Silvers is offline
Alexmy
Senior Member
Join Date: Oct 2014
Location: Russian Federation
Old 11-02-2021 , 10:14   Re: [L4D & L4D2] Left 4 DHooks Direct (1.67) [25-Oct-2021]
Reply With Quote #507

Quote:
Originally Posted by Silvers View Post
You want to block the tongue catching someone? If it's just to know when someones been grabbed theres an event for that.
so that the tongue is lock when attacking the survivor. Also, if possible, add a forward for the jockey.
__________________
[/URL]
Alexmy is offline
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
Old 11-02-2021 , 12:36   Re: [L4D & L4D2] Left 4 DHooks Direct (1.68) [02-Nov-2021]
Reply With Quote #508

Code:
1.68 (02-Nov-2021)
    - Added new forward "L4D_OnGrabWithTongue" to L4D2 to notify when someone is about to be grabbed by a Smoker Tongue. Requested by "Alexmy".
    - Added new forward "L4D2_OnJockeyRide" to notify when someone is about to be ridden by a Jockey. Requested by "Alexmy".
    - Cleaned and consolidated the code: standardized gamedata names, function names and variable names.
    - Compatibility support for SourceMod 1.11. Fixed various warnings.

    - GameData files, include file and plugins updated.
A lot of code and gamedata stuff has been renamed. Future update will re-arrange some of the code and gamedata to consolidate it better.


Regarding "L4D_OnGrabWithTongue" see the test plugin for example usage, has notes on making it work without the Smoker freezing on the spot for a second or so.
__________________

Last edited by Silvers; 11-02-2021 at 14:56.
Silvers is offline
Alexmy
Senior Member
Join Date: Oct 2014
Location: Russian Federation
Old 11-03-2021 , 14:55   Re: [L4D & L4D2] Left 4 DHooks Direct (1.68) [02-Nov-2021]
Reply With Quote #509

Quote:
Originally Posted by Silvers View Post
Code:
1.68 (02-Nov-2021)
    - Added new forward "L4D_OnGrabWithTongue" to L4D2 to notify when someone is about to be grabbed by a Smoker Tongue. Requested by "Alexmy".
    - Added new forward "L4D2_OnJockeyRide" to notify when someone is about to be ridden by a Jockey. Requested by "Alexmy".
    - Cleaned and consolidated the code: standardized gamedata names, function names and variable names.
    - Compatibility support for SourceMod 1.11. Fixed various warnings.

    - GameData files, include file and plugins updated.
A lot of code and gamedata stuff has been renamed. Future update will re-arrange some of the code and gamedata to consolidate it better.


Regarding "L4D_OnGrabWithTongue" see the test plugin for example usage, has notes on making it work without the Smoker freezing on the spot for a second or so.
Thanks Silvers.
__________________
[/URL]
Alexmy is offline
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
Old 11-03-2021 , 17:27   Re: [L4D & L4D2] Left 4 DHooks Direct (1.69) [03-Nov-2021]
Reply With Quote #510

While we're at it. Here are the other 2 missing forwards.

Code:
1.69 (03-Nov-2021)
    - Added forward "L4D_OnPouncedOnSurvivor" to notify when a Survivor is being pounced on by a Hunter.
    - Added forward "L4D2_OnStartCarryingVictim" to L4D2 to notify when a Survivor is being grabbed by a Charger.
    - Fixed some natives disabling the plugin if their signatures broke. Only their functionality will break.

    - GameData files, include file and plugins updated.
__________________

Last edited by Silvers; 11-03-2021 at 17:27.
Silvers 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 18:24.


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