AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Approved Plugins (https://forums.alliedmods.net/forumdisplay.php?f=8)
-   -   AdThemes - Cover those CS ads - NoAds (https://forums.alliedmods.net/showthread.php?t=53037)

Vet 03-24-2007 17:18

AdThemes - Cover those CS ads - NoAds
 
17 Attachment(s)
RECOMMENDED UPDATE (6-3-07) !!!

Preface:
AdThemes will cover the Valve ads in CS with custom models (I call 'em sheets). That's right, no more shitty Valve ads. The models are grouped as to create a theme. I've provided 4 themes as a start. One theme, the default, will cover the ads with models similar to the original map's wall texture (not perfect, but pretty damn close). Hopefully, others will create more themes.

Installation:
Download the adthemes.zip file and extract it to your 'cstrike' folder.
Add the line 'adthemes.amxx' to your 'plugins.ini' file.
(The source code is extracted to 'addons/amxmodx/scripting')

Commands: (Access level 'h'):
amx_adthemes_enable - This command will toggle AdThemes to its opposite state (on or off).
amx_adthemes_file <filename> - Use this command to change the theme config file.
Note: Changes will not take affect until the next map.

CVARs:
amx_adthemes <0|1> - Disable|Enable the plugin (default = 1)
amx_adthemescfg <filename> - Selects the theme to use (default = adthemes_none.cfg)

Themes provided:
adthemes_none - Covers the ads with a texture similar to the original. (NO ADS)
adthemes_pinup - Covers the ads with sexah ladies (PG-13).
adthemes_sports - Covers the ads with sports related pixs.
adthemes_adssuck - Covers the ads with a message to Valve.

3rd Party Themes:
Pinups by Zuko: Thread - Download
Cats by Zuko: Thread - Download
Cats2 by Zuko: Thread - Download


Plugin Creation:
First, let me say that I no longer play CS. I'm a DOD man. And I've written several AmxmodX plugins for DOD. But the fact that Valve is placing ads in a game which I've paid for really pisses me off. And, I figure if someone doesn't do something, those pricks will start adding the ads to DOD too.

Second, let me state that the idea to cover the ads is not mine. I owe credit to commonbullet's thread. Ya, I know others have suggested it too, but I read his first and he's actually doing something about it. I just built on his idea. I thought "hey, why not cover the ads with naked ladies". And the idea of themes sprouted from there.

However, the code is 100% mine. I simply modified a plugin I wrote a while back to place our clan logo in various spots on DOD maps.

I have 3 hopes in developing this plugin.
1) That people spread the word that they don't have to put up with Valve's crappy ads and use it.
2) That others create and submit more AdThemes.
3) That the plugin will be short-lived because Valve terminates their ad program.


About the plugin:
The plugin, during precache, will look for the file assigned by the command 'amx_adthemes_file' (the default config file is 'adthemes_none.cfg' - NOADS). It will then scan for the current mapname's 'mapblock' (sample mapblock shown below). A 'mapblock' defines on which maps to apply AdThemes, which models are to be used, where to locate them, and how to orient them. The mapblock structure and syntax needs to be exact (I'm not into 'error checking for dummies'). If a mapblock is found, it will precache the models designated. After precache, the plugin will scan the file again for location lines and insert entity sheets as defined. The main caveat in creating a mapblock relates to the ModelID number. As the models are read, they're assigned an ID number in the order they're read starting with #1 (limit of 16). This number corresponds to the 2nd parameter in the location line. You can actually use this plugin to place any model, anywhere, on any map. But covering the ads is sooo much fun.

Sample mapblock...
---------------------------------------
[de_dust]
adssuck_80x80.mdl
adssuck_96x96.mdl
}
667.9 2048.13 100.5/2/0 90 0/ T spawn
-148 -0.15 100.5/2/0 270 0/ CT spawn
-52 -0.15 100.5/2/0 270 0
2559.98 828 151/1/0 180 0/ Bombsite A
2559.98 828 71/1/0 180 0
}
---------------------------------------
Note that sections terminate with a curly bracket '}', NOT a parentheses ')'.

Refer to the 'adthemes.txt' file located in the 'models/adthemes/' folder for information reguarding the current ads' size, center origin, Z-axis angle, and light_origin offset. This file also contains mapblock structure and command references. I've included several 'blank' models that you can use to create your own sheets. Simply use a model viewer (I use Jed's HLMV) and import your texture and resave the model. Note that the textures must be the same size as the one you're replacing, and use 8-bit (256) color mapping.

RECOMMENDED UPDATE (6-3-07) !!!


Revision history:
----------------
1.8 (6-3-07)
Added server-side variable named AdThemes to track plugin usage via Game-Monitor. So players can now search for servers that are using the plugin and know in advance that they won't be bothered by ads.
Note: Only the adthemes.amxx and adthemes.sma files were changed. So you can reinstall the whole thing, or simply compile the adthemes.sma and replace the existing adthemes.amxx file.

1.7 (5-4-07)
1) Minor code change
2) Added 2 more hi-res blank models
3) Added fakemeta_util includes in the code (so it will now compile online)
(No functional changes made - no need to update if everything's running OK)

1.6 (3-27-07)
1) Removed redundant log messages.
2) Location lines with modelIDs 'out of range' will now just be skipped instead of killing the plugin.
3) Added checking for EOF in precache routine.
4) Added higher resolution 'blank' models to improve detail.
5) Changed Pinup & Sports AdThemes to hi-res sheets for better quality pix.

1.5a (3-25-07)
1) Added missing 'Sheet' for Aztec.

1.5 (3-24-07)
Original release

Deviance 03-24-2007 17:40

Re: AdThemes - Cover those CS ads - NoAds
 
You can do gl_polyoffset -9999 too, but this is nice. GJ man :)

xconrob 03-24-2007 17:55

Re: AdThemes - Cover those CS ads - NoAds
 
very nice but when i tryed downloading it said plugin failed

please fix this i WANT THIS PLUGIN BADLY

vvg125 03-24-2007 17:58

Re: AdThemes - Cover those CS ads - NoAds
 
You have to compile locally using the fakemeta_util.

This plugin is awesome. I love the anti ads theme.

ABC3Q 03-24-2007 18:09

Re: AdThemes - Cover those CS ads - NoAds
 
I think this should be approved if you clean this up a bit because im sure the plugin aprovers will enjoy this aswell.

Bo0m! 03-24-2007 18:34

Re: AdThemes - Cover those CS ads - NoAds
 
Beautiful.

vvg125 03-24-2007 18:42

Re: AdThemes - Cover those CS ads - NoAds
 
Ok, I just finished trying all the themes with de_dust2, de_dust, and de_aztec and everything seems to work fine. I just wanted to point out you forgot to cover an ad in de_aztec. I know I can add it myself, and I'm going to try, but just a note that it's missing in the download pack.

Here's the screenshot of where it is:

http://www.armopride.com/untitled.bmp


It's near one of the bomb sites, forgot which letter it is... >_>

Da_sk8rboy 03-24-2007 18:55

Re: AdThemes - Cover those CS ads - NoAds
 
Quote:

Originally Posted by Deviance (Post 456376)
You can do gl_polyoffset -9999 too, but this is nice. GJ man :)

unfortunately it does more than removes the ad's.

vvg125 03-24-2007 18:57

Re: AdThemes - Cover those CS ads - NoAds
 
Sorry for going off-topic but, what's gl_polyoffset -9999 do besides remove ads? I haven't used it so I wouldn't know.

Da_sk8rboy 03-24-2007 19:00

Re: AdThemes - Cover those CS ads - NoAds
 
Ban's your steam account. (just kidding.)
it removes little things like blood etc.


All times are GMT -4. The time now is 19:30.

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