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

[EXTENSION] Left 4 Downtown 2 (0.5.4.2) - L4D2 Only, Updated Left4Downtown


Post New Thread Reply   
 
Thread Tools Display Modes
MarshalZCC
Senior Member
Join Date: Feb 2010
Location: Alberta, Canada
Old 11-27-2010 , 15:36   Re: [EXTENSION] Left 4 Downtown 2 (0.5.2.3) - L4D2 Only, Updated Left4Downtown
Reply With Quote #171

Quote:
Originally Posted by AtomicStryker View Post
It's too generic IMO. Defining 'stuck' is a complicated issue, and i believe L4D already never teleports unless the Bots navigation cant compute a path to the human Survivors (== stuck).

So, if we were to block Teleport if CTerrorPlayer is a Survivor Bot and a distance away from the target, the Bot would probably simply remain where it is, and not move toward the human on foot like Marshal hopes.
I believe (and have seen) survivor bots teleport far distances when they aren't stuck. It seems to be triggered based on how far they are from a survivor player.
MarshalZCC is offline
AtomicStryker
Veteran Member
Join Date: Apr 2009
Location: Teutonia!!
Old 11-27-2010 , 15:54   Re: [EXTENSION] Left 4 Downtown 2 (0.5.2.3) - L4D2 Only, Updated Left4Downtown
Reply With Quote #172

Its a safety mechanism aswell. L4D2 actually crashes when the game tries to compute too long paths. If you teleport an incapped Bot all across the Parish Finale Bridge the game will crash trying to get Bots to move over there.
AtomicStryker is offline
kpaxian
Junior Member
Join Date: Nov 2010
Old 11-27-2010 , 17:13   Re: [EXTENSION] Left 4 Downtown 2 (0.5.2.3) - L4D2 Only, Updated Left4Downtown
Reply With Quote #173

Quote:
Originally Posted by Skorpion1976 View Post
Hi
1. sv_gametype does not exist. Itīs sv_gametypes (plural).
2. Why do you use BOTH toolz and downtown for slot patching at the same time? Either or.
3. Are you a member of at least 1 steamgroup of the corresponding cvar ?
4. You have this "setmaster add hl2master.steampowered.com" in your server.cfg ?
Hey Skorpion,
Damn I missed this - I actually edited the post you responded to (but seems the edit didnt show up) but had said I fixed it, but thanks very much for tips here. The slot stuff was making me crazy.
The problem with the server not showing up was a dumb one - I had commented out the Host name a few days back because I was testing and forgot to uncomment it. doh.

I've since removed Toolz, but still have a problem which you can read a few posts back.

Cheers,
Pax
kpaxian is offline
Mr. Zero
Veteran Member
Join Date: Jun 2009
Location: Denmark
Old 12-14-2010 , 18:08   Re: [EXTENSION] Left 4 Downtown 2 (0.5.2.3) - L4D2 Only, Updated Left4Downtown
Reply With Quote #174

Just wondering, does the extension registry a library? Couldn't see anything suggesting it in the source.

Otherwise, I would like to request it.
Mr. Zero is offline
psychonic

BAFFLED
Join Date: May 2008
Old 12-14-2010 , 18:26   Re: [EXTENSION] Left 4 Downtown 2 (0.5.2.3) - L4D2 Only, Updated Left4Downtown
Reply With Quote #175

Quote:
Originally Posted by Mr. Zero View Post
Just wondering, does the extension registry a library? Couldn't see anything suggesting it in the source.

Otherwise, I would like to request it.
Added for the next version. The library name will be "left4downtown2".
psychonic is offline
Mr. Zero
Veteran Member
Join Date: Jun 2009
Location: Denmark
Old 12-20-2010 , 04:56   Re: [EXTENSION] Left 4 Downtown 2 (0.5.2.3) - L4D2 Only, Updated Left4Downtown
Reply With Quote #176

Another request.

GetSurvivorSet as a function to retrieve the current survivor set.
Mr. Zero is offline
AtomicStryker
Veteran Member
Join Date: Apr 2009
Location: Teutonia!!
Old 12-20-2010 , 06:41   Re: [EXTENSION] Left 4 Downtown 2 (0.5.2.3) - L4D2 Only, Updated Left4Downtown
Reply With Quote #177

Did you read the feature list.

Quote:

/**
* @brief Called whenever CTerrorGameRules::GetSurvivorSet(void) is invoked
*
* @param retVal what to override the return value with
*
* @return Pl_Handled to override return value, Pl_Continue otherwise.
*/
forward Action:L4D_OnGetSurvivorSet(&retVal);

/**
* @brief Called whenever CTerrorGameRules::FastGetSurvivorSet(void) is invoked
*
* @param retVal what to override the return value with
*
* @return Pl_Handled to override return value, Pl_Continue otherwise.
*/
forward Action:L4D_OnFastGetSurvivorSet(&retVal);
AtomicStryker is offline
Mr. Zero
Veteran Member
Join Date: Jun 2009
Location: Denmark
Old 12-20-2010 , 11:07   Re: [EXTENSION] Left 4 Downtown 2 (0.5.2.3) - L4D2 Only, Updated Left4Downtown
Reply With Quote #178

What if the my plugin gets the survivor set first, than another plugin changes the value after I have already checked it?

Will I get the changed return value, or the original value?
Mr. Zero is offline
AtomicStryker
Veteran Member
Join Date: Apr 2009
Location: Teutonia!!
Old 12-20-2010 , 18:50   Re: [EXTENSION] Left 4 Downtown 2 (0.5.2.3) - L4D2 Only, Updated Left4Downtown
Reply With Quote #179

Depends on the order the plugins were loaded.

Yes i know that's stupid, but for some reason they dont want to change it.


Also .. using this to change L4D2 survivors to L4D1 has issues. If it were easily possible to make a Survivor-Swap plugin, i would have already made it.
AtomicStryker is offline
Mr. Zero
Veteran Member
Join Date: Jun 2009
Location: Denmark
Old 12-21-2010 , 02:38   Re: [EXTENSION] Left 4 Downtown 2 (0.5.2.3) - L4D2 Only, Updated Left4Downtown
Reply With Quote #180

How about a simple post hook then?

L4D_OnGetSurvivorSet_Post
L4D_OnFastGetSurvivorSet_Post

To ensure the returned value gets forwarded.
Mr. Zero 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 08:09.


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