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

AdThemes - Cover those CS ads - NoAds


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   Counter-Strike        Category:   General Purpose        Approver:   Hawk552 (427)
Vet
Veteran Member
Join Date: Jul 2006
Location: I|O wa
Old 03-24-2007 , 18:18   AdThemes - Cover those CS ads - NoAds
Reply With Quote #1

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
Attached Thumbnails
Click image for larger version

Name:	at_none.jpg
Views:	20610
Size:	19.6 KB
ID:	14871   Click image for larger version

Name:	at_pinup.jpg
Views:	29908
Size:	18.1 KB
ID:	14872   Click image for larger version

Name:	at_sports.jpg
Views:	22733
Size:	18.5 KB
ID:	14873   Click image for larger version

Name:	at_suck.jpg
Views:	23208
Size:	17.7 KB
ID:	14874  
Attached Files
File Type: zip adthemes.zip (803.7 KB, 8274 views)
File Type: sma Get Plugin or Get Source (adthemes.sma - 6676 views - 6.0 KB)
__________________
=====================================
- My Plugins -
=====================================

Last edited by Vet; 08-23-2007 at 01:22. Reason: Updated for new version
Vet is offline
Send a message via MSN to Vet
Deviance
Veteran Member
Join Date: Nov 2004
Location: Sweden
Old 03-24-2007 , 18:40   Re: AdThemes - Cover those CS ads - NoAds
Reply With Quote #2

You can do gl_polyoffset -9999 too, but this is nice. GJ man
Deviance is offline
xconrob
Member
Join Date: Mar 2007
Old 03-24-2007 , 18:55   Re: AdThemes - Cover those CS ads - NoAds
Reply With Quote #3

very nice but when i tryed downloading it said plugin failed

please fix this i WANT THIS PLUGIN BADLY
xconrob is offline
vvg125
AMX Mod X Beta Tester
Join Date: Dec 2006
Location: Queens (Douglaston), New
Old 03-24-2007 , 18:58   Re: AdThemes - Cover those CS ads - NoAds
Reply With Quote #4

You have to compile locally using the fakemeta_util.

This plugin is awesome. I love the anti ads theme.
__________________
vvg125 is offline
Send a message via AIM to vvg125 Send a message via MSN to vvg125 Send a message via Yahoo to vvg125
ABC3Q
Junior Member
Join Date: Mar 2007
Old 03-24-2007 , 19:09   Re: AdThemes - Cover those CS ads - NoAds
Reply With Quote #5

I think this should be approved if you clean this up a bit because im sure the plugin aprovers will enjoy this aswell.
__________________
| Account has been abandoned |
ABC3Q is offline
Bo0m!
Veteran Member
Join Date: Mar 2006
Location: New Jersey
Old 03-24-2007 , 19:34   Re: AdThemes - Cover those CS ads - NoAds
Reply With Quote #6

Beautiful.
__________________
Bo0m! is offline
Send a message via AIM to Bo0m! Send a message via MSN to Bo0m! Send a message via Yahoo to Bo0m!
vvg125
AMX Mod X Beta Tester
Join Date: Dec 2006
Location: Queens (Douglaston), New
Old 03-24-2007 , 19:42   Re: AdThemes - Cover those CS ads - NoAds
Reply With Quote #7

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... >_>
__________________

Last edited by vvg125; 03-24-2007 at 19:47.
vvg125 is offline
Send a message via AIM to vvg125 Send a message via MSN to vvg125 Send a message via Yahoo to vvg125
Da_sk8rboy
Veteran Member
Join Date: Jul 2006
Old 03-24-2007 , 19:55   Re: AdThemes - Cover those CS ads - NoAds
Reply With Quote #8

Quote:
Originally Posted by Deviance View Post
You can do gl_polyoffset -9999 too, but this is nice. GJ man
unfortunately it does more than removes the ad's.
__________________
i stop around here and there.
Da_sk8rboy is offline
vvg125
AMX Mod X Beta Tester
Join Date: Dec 2006
Location: Queens (Douglaston), New
Old 03-24-2007 , 19:57   Re: AdThemes - Cover those CS ads - NoAds
Reply With Quote #9

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.
__________________
vvg125 is offline
Send a message via AIM to vvg125 Send a message via MSN to vvg125 Send a message via Yahoo to vvg125
Da_sk8rboy
Veteran Member
Join Date: Jul 2006
Old 03-24-2007 , 20:00   Re: AdThemes - Cover those CS ads - NoAds
Reply With Quote #10

Ban's your steam account. (just kidding.)
it removes little things like blood etc.
__________________
i stop around here and there.
Da_sk8rboy is offline
Reply


Thread Tools
Display Modes

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 14:46.


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