Raised This Month: $32 Target: $400
 8% 

How to make a standalone plugin for TF2?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
F2dk
Junior Member
Join Date: Mar 2009
Old 03-02-2009 , 10:12   How to make a standalone plugin for TF2?
Reply With Quote #1

Hi Everyone

I was wondering how to go about making a "standalone" server-side plugin for TF2? With "standalone" I mean a plugin independent of SourceMod or any other Admin plugin...

I tried reading on Valve's Developer site, using the Create Mod in Source SDK... But it didn't get me any closer to making a simple TF2 server-side plugin.

Say I just want to do something very simple... Like, double the speed of the Soldier's rockets. Or, every time a Soldier shoots a rocket a message pops up reading "POW".

Where do I start?

Greetings, F2
F2dk is offline
CrimsonGT
Veteran Member
Join Date: Oct 2007
Location: Gainesville, FL
Old 03-02-2009 , 13:37   Re: How to make a standalone plugin for TF2?
Reply With Quote #2

Learn C++.
__________________
CrimsonGT is offline
DJ Tsunami
DJ Post Spammer
Join Date: Feb 2008
Location: The Netherlands
Old 03-02-2009 , 13:50   Re: How to make a standalone plugin for TF2?
Reply With Quote #3

Good luck, making Valve Server Plugins is a pain in the ass compared to SourceMod plugins, so you're better off doing the latter for simple stuff like doubling the rocket speed or popping up messages.
__________________
Advertisements | REST in Pawn - HTTP client for JSON REST APIs
Please do not PM me with questions. Post in the plugin thread.
DJ Tsunami is offline
Nephyrin
SourceMod Donor
Join Date: Mar 2008
Old 03-05-2009 , 03:52   Re: How to make a standalone plugin for TF2?
Reply With Quote #4

Creating raw server plugins (aka Valve Server Plugins/VSPs) is not a simple job, and even for the examples you gave would involve a lot of work.
There is also MM:S - a plugin system that is designed to support 'raw' C++ plugins, while allowing them to load and share the sourcehook library which most plugins use to hook things in the engine. Writing MM:S plugins is preferable to going straight at VSPs, and is less of a pain. SourceMod itself is a MM:S plugin.

Check out the sample_plugin folder in the source SDK as well as the example plugins that come with metamod source. But be warned, creating a plugin of any type is no easy task, and is not a very good place to start if you're not already fluent in C++.

- Neph

Last edited by Nephyrin; 03-05-2009 at 03:54. Reason: lol, grammar at 1am
Nephyrin 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 17:24.


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