Raised This Month: $ Target: $400
 0% 

[L4D] Static Team Roles


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Pulseczar
Junior Member
Join Date: Jul 2009
Old 08-22-2009 , 22:06   [L4D] Static Team Roles
Reply With Quote #1

Is it possible to remove switching from Infected to Survivors and vice versa at the end of rounds? This would allow people to only play Infected for an extended period of time and allow people to play Campaign against humans rather than dumb AI.

I'm a coder, myself, who's trying to learn how to write Sourcemod plugins, but I don't see myself getting anywhere with this project any time soon, because I can't find enough literature on plugin writing. I can't even really get a good idea as to what Sourcemod can and can't do in L4D.

The guides on the main site are good, they are just too short.
Pulseczar is offline
Kraizen
Member
Join Date: Aug 2009
Old 08-23-2009 , 03:02   Re: [L4D] Static Team Roles
Reply With Quote #2

Recently starting myself so I can understand your frustration.

Sourcemod uses a scripting language called sourcepawn,

http://wiki.alliedmods.net/Introduction_to_SourcePawn

Very similar to C++ and basically is an extended shell language (like say a unix shell (bash) or games with shell engines like Morrowind.

The link above is your basic primer on variables and functions and is a good read.

Second, get some approved plugins and download them to your l4d/addons/sourcemod/scripting directory as a *.so file for practice (download the source not the plugin). Open the *.so file in textpad and have a look at the structure of the code. See how the modder achieves their goal, whether it be using netprop memory addresses, l4d convars, or whatever. Double click the compile exe in the same directory. This will compile your plugin and put it in the "compiled" directory.

It's hard to initially get your head around, but once you know where to find stuff its not that bad.
Kraizen is offline
olj
Veteran Member
Join Date: Jun 2009
Old 08-23-2009 , 11:11   Re: [L4D] Static Team Roles
Reply With Quote #3

Ye, its easier than fuking visual basic, lol. (studied that one some time ago too).
__________________
olj is offline
Pulseczar
Junior Member
Join Date: Jul 2009
Old 08-23-2009 , 11:58   Re: [L4D] Static Team Roles
Reply With Quote #4

Quote:
Originally Posted by Kraizen View Post
Recently starting myself so I can understand your frustration.

Sourcemod uses a scripting language called sourcepawn,

http://wiki.alliedmods.net/Introduction_to_SourcePawn

Very similar to C++ and basically is an extended shell language (like say a unix shell (bash) or games with shell engines like Morrowind.

The link above is your basic primer on variables and functions and is a good read.

Second, get some approved plugins and download them to your l4d/addons/sourcemod/scripting directory as a *.so file for practice (download the source not the plugin). Open the *.so file in textpad and have a look at the structure of the code. See how the modder achieves their goal, whether it be using netprop memory addresses, l4d convars, or whatever. Double click the compile exe in the same directory. This will compile your plugin and put it in the "compiled" directory.

It's hard to initially get your head around, but once you know where to find stuff its not that bad.
Yeah, I noticed that it seemed that 50% of learning SM plugin writing is learning by example, given the lack of infomation on it. I've looked at several examples of plugins, and that's a fine way to learn if you're looking to do things that are very similar to what others have done. But there doesn't seem to be any existing plugins that are very similar to the stuff that I want to do. It's difficult to get a very good idea as to what SM can and can't do by looking at examples. Also, I just hate learning by example, though I often have to do that because of lack of documentation - because I learn much slower by example, as far as coding goes. If I already know all the basics, examples are wonderful, but if I don't yet have that foundation, examples suck for me. Examples are a lot better than nothing, though.
Pulseczar is offline
olj
Veteran Member
Join Date: Jun 2009
Old 08-23-2009 , 12:42   Re: [L4D] Static Team Roles
Reply With Quote #5

Read introduction to source plugins also. And other stuff - like working with events (really simple btw), menus, commands etc.
__________________
olj 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 03:53.


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