AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Snippets and Tutorials (https://forums.alliedmods.net/forumdisplay.php?f=112)
-   -   INFO: Left 4 Dead Missing Functions (https://forums.alliedmods.net/showthread.php?t=82257)

CrimsonGT 12-19-2008 22:06

INFO: Left 4 Dead Missing Functions
 
I just thought I would throw this thread up as I have been doing a lot of Left 4 Dead plugins over the last few days for various people, and some of them I have had to either completely turn down, or do their request in an alternate, not so appealing manner.

Whats different?

Round Restarts:
There is no server cvar to restart the game round like in past valve games. There is a cvar called "restart" that is supposed to restart the round, but it does not work. Me and Tsunami found the voffset for a round restart function, and made an SDKCall to it and it works, but seems a bit buggy. (Only 1 health pack spawned, screen went black for 15 seconds, etc). I will post this function up shortly as its the only working method of restarting the round at the moment.

Download Tables:
A fairly easy job was requested, and they had to be turned down due to this very major change. Me and Tsunami both attempted multiple methods, and it appears that there are no download tables for L4D, thus you cannot give any custom content to players. I am assuming this is because they took out the server connect box that every other game of theirs has had, so the client would not know what they are downloading. I am also assuming this is because they wanted to prevent heavily modified custom servers, but I do not really know.

Theres a few more missing features, but I am still testing them at the moment to see if there are any work arounds. I will keep this thread updated with more stuff that I find. I welcome additions as well.

Sammy-ROCK! 12-19-2008 23:06

Re: INFO: Left 4 Dead Features
 
They might want to keep the skins like they are and decided to block custom files. I wonder how would peoples download custom maps if it's disabled? L4D will fall if it stays... (I'm closing my server next month)

CrimsonGT 12-20-2008 00:59

Re: INFO: Left 4 Dead Features
 
With the SDK comes a bunch of the custom maps stuff, including some tutorials and writeups from valve on mapping especially for Left 4 Dead. However, at the moment, im not even sure if a custom map would download.

Fyren 12-20-2008 05:57

Re: INFO: Left 4 Dead Missing Functions
 
Custom maps won't download. You just get dumped back to the menu without a message. Server just sees "disconnect by user."

Sammy-ROCK! 12-20-2008 10:05

Re: INFO: Left 4 Dead Missing Functions
 
I don't think valve really wanted it to be modded. Even custom maps.

Kigen 12-20-2008 10:09

Re: INFO: Left 4 Dead Missing Functions
 
Ya, I have to agree VALVe didn't want L4D modified at all.

So I do see L4D having a early demise unless VAVLe fixes their mistakes. :(

bl4nk 12-20-2008 13:17

Re: INFO: Left 4 Dead Missing Functions
 
Valve has already stated that they're going to release an SDK (for mappers at least).

Sammy-ROCK! 12-21-2008 15:37

Re: INFO: Left 4 Dead Missing Functions
 
I don't see a point for wasting time making a map while sharing it will be a pain. I also think the lobby won't send peoples to servers with custom maps.

CrimsonGT 12-21-2008 15:40

Re: INFO: Left 4 Dead Missing Functions
 
We are assuming valve will implement an automated map download like they have in all of their other games. But yes, I assume matchmaking will only find stock maps.

Sammy-ROCK! 12-21-2008 21:07

Re: INFO: Left 4 Dead Missing Functions
 
Assuming they did it and that lobby won't send you to custom maps. You'll have to find out how to connect to custom servers... Atleast there's a good point at all: No newbies.

danielkza 12-21-2008 21:37

Re: INFO: Left 4 Dead Missing Functions
 
I hope Valve does not stop people from using custom maps like that. The modding community kept most of Valves game alives way beyond a normal game lifetime. Something like this would be suicide for a game like L4D, specially cause the campaign is so short.

recon0 12-22-2008 04:10

Re: INFO: Left 4 Dead Missing Functions
 
Quote:

Originally Posted by Kigen (Post 730342)
Ya, I have to agree VALVe didn't want L4D modified at all.

So I do see L4D having a early demise unless VAVLe fixes their mistakes. :(

I have to agree with your 2nd point.

As a player, I am already seeing issues where servers have been modified and don't produce the expected game play.

Sammy-ROCK! 12-26-2008 10:34

Re: INFO: Left 4 Dead Missing Functions
 
I wonder. If we can't add custom stuffs to download why there's a "Allow custom content" at multiplayer settings?

bl4nk 12-26-2008 10:49

Re: INFO: Left 4 Dead Missing Functions
 
Because it's a planned feature. Currently all it allows you to download are client sprays, but there doesn't need to be a loading screen and such for that.

dstill 12-26-2008 15:30

Re: INFO: Left 4 Dead Missing Functions
 
crimson we found out that if people dont pick up the health packs at the beginning they are there after restart if that helps.

Sammy-ROCK! 12-27-2008 12:12

Re: INFO: Left 4 Dead Missing Functions
 
Quote:

Originally Posted by dstill (Post 733614)
crimson we found out that if people dont pick up the health packs at the beginning they are there after restart if that helps.


When it restart it's like the previous match didn't happen.

DJ Tsunami 12-27-2008 16:59

Re: INFO: Left 4 Dead Missing Functions
 
No, unfortunately it's not. When you pick up a health pack and then restart the round, the health pack is gone. Also the infected will have to wait 20 seconds to respawn after round restart, instead of being able to instantly spawn like on map start. This is stuff L4D messes up on, so it's difficult to fix it.

Fyren 12-27-2008 17:18

Re: INFO: Left 4 Dead Missing Functions
 
If you call Director::RestartScenario() it works like you want. But, you can't currently make that call from a SM plugin. You need an extension.

DJ Tsunami 12-27-2008 17:37

Re: INFO: Left 4 Dead Missing Functions
 
Why is that? Is there no signature for it?

Fyren 12-27-2008 18:53

Re: INFO: Left 4 Dead Missing Functions
 
You can't make arbitrary non-static calls in a SM plugin. The class whose member you call has to either be an entity (and SM will figure out a pointer to the CBasePlayer/CBaseEntity instance you want from the entity index) or one of the hardcoded ones SM knows (CGameRules and CGlobalEntityList). The director object falls under neither, so right now you need an extension to find a pointer to it yourself. (See https://bugs.alliedmods.net/show_bug.cgi?id=3520)


All times are GMT -4. The time now is 18:10.

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