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

AdThemes - Cover those CS ads - NoAds


Post New Thread Reply   
 
Thread Tools Display Modes
Zuko
SourceMod Donor
Join Date: Sep 2006
Location: Poland
Old 06-25-2007 , 05:04   Re: AdThemes - Cover those CS ads - NoAds
Reply With Quote #101

change texture, I used Jed's Half-Life Model Viewer
__________________
Zuko is offline
Send a message via ICQ to Zuko
ahh*pot
Member
Join Date: Nov 2005
Old 11-21-2007 , 02:27   Re: AdThemes - Cover those CS ads - NoAds
Reply With Quote #102

i am trying to add sheets to other maps, esp cover up the ads on the cpl and cevo maps, how can i figure out the location and size of these ads so i can add them to the config file and cover them up?
ahh*pot is offline
Send a message via AIM to ahh*pot Send a message via Yahoo to ahh*pot
Vet
Veteran Member
Join Date: Jul 2006
Location: I|O wa
Old 11-21-2007 , 10:26   Re: AdThemes - Cover those CS ads - NoAds
Reply With Quote #103

I used a bsp viewer. Move in real close to where the ad was placed and get the general location and size. Then plug in the values in the config and check it out in-game. You'll need to do some trial & error fine tweaking to get it right.
__________________
=====================================
- My Plugins -
=====================================
Vet is offline
Send a message via MSN to Vet
ahh*pot
Member
Join Date: Nov 2005
Old 11-22-2007 , 00:48   Re: AdThemes - Cover those CS ads - NoAds
Reply With Quote #104

what bsp viewer did you use...
ahh*pot is offline
Send a message via AIM to ahh*pot Send a message via Yahoo to ahh*pot
purple_pixie
Veteran Member
Join Date: Jun 2007
Location: Winchester, England
Old 11-22-2007 , 10:45   Re: AdThemes - Cover those CS ads - NoAds
Reply With Quote #105

There's probably a plugin that you can enter some co-ords and it will draw a box for you.

If not I may be able to write one.

PHP Code:
/* Plugin generated by AMXX-Studio */

#include <amxmodx>
#include <amxmisc>

#if !defined charsmax
    #define charsmax(%1) sizeof(%1)-1
#endif

enum coords
{
    
x1,
    
y1,
    
z1,
    
x2,
    
y2,
    
z2
}
new 
box_origins[coords];

public 
plugin_init() 
{
    
register_plugin("Draw a box""1.0""Pixie")
    
register_concmd("amx_box_coord","box",ADMIN_ALL,"amx_box <coord> <location> e.g. amx_box x1 100, or amx_box z2 234")
    
register_concmd("amx_draw_box","draw_box",ADMIN_ALL)
}
public 
box(id,level,cid)
{
    static 
arg1[3] ;
    static 
arg2[10] ;
    static 
coords:coord=x1;
    
    
read_argv(1,arg1,charsmax(arg1))
    
    if ( 
arg1[1] != '1' && arg1[1] != '2' )
    {
        
console_print(id,"Invalid co-ord specifier: %s",arg1)
        return 
PLUGIN_HANDLED ;
    }
    switch ( 
arg1[0] )
    {
        case 
'x'coord x1 ;
        case 
'y'coord y1 ;
        case 
'z'coord z1 ;
        default: 
        {
            
console_print(id,"Invalid co-ord specifier: %s",arg1)
            return 
PLUGIN_HANDLED ;        
        }
    }
    if ( 
arg1[1] == '2' )
    {
        
coord += x2 // switch from x1 to x2 et c.
    
}
    
    
read_argv(2,arg2,charsmax(arg2))
    
    
box_origins[coord] = str_to_num(arg2) ;
    
    return 
PLUGIN_HANDLED ;
}
public 
draw_box()
{
    static 
coords:;
    
message_begin(MSG_BROADCAST,SVC_TEMPENTITY,{0,0,0},0)
    
write_byte(TE_BOX)
    for ( 
x1 <= z2 ++ )
    {
        
write_coord(box_origins[i])
    }
    
write_short(100) ; // life ( in 0.1 seconds )
    
write_byte(0) ; // R
    
write_byte(255) ; // G
    
write_byte(0) ; // B
    
message_end() ;


Vet, if you are interested feel free to bundle this with your plugin.
I'm not really an ownership kind of guy when it comes to code.
Particularly such simple code.

Last edited by purple_pixie; 11-22-2007 at 11:16.
purple_pixie is offline
Vet
Veteran Member
Join Date: Jul 2006
Location: I|O wa
Old 12-01-2007 , 02:27   Re: AdThemes - Cover those CS ads - NoAds
Reply With Quote #106

I used BSP Viewer. The same author released a newer version called Crafty, but I haven't tried it.
Another one is in Botman's BSP Tools package. But I haven't tried that one either.
I only used them to get the general location and size. It was trial and error after that. But it looks like Pixie has an interesting idea going on. Give that a try. It sounds like a lot less work than my way.
__________________
=====================================
- My Plugins -
=====================================

Last edited by Vet; 12-01-2007 at 02:35.
Vet is offline
Send a message via MSN to Vet
ahh*pot
Member
Join Date: Nov 2005
Old 12-07-2007 , 02:57   Re: AdThemes - Cover those CS ads - NoAds
Reply With Quote #107

i downloaded the bsp viewer and honestly i had no idea what to do after i opened the map lol. it would be awesome is someone could write a tutorial on how to do this im sure alot of people would like to know how.
ahh*pot is offline
Send a message via AIM to ahh*pot Send a message via Yahoo to ahh*pot
elche767
Junior Member
Join Date: Jan 2008
Old 02-01-2008 , 14:35   Re: AdThemes - Cover those CS ads - NoAds
Reply With Quote #108

how do we make the model
elche767 is offline
deejay87
Senior Member
Join Date: Apr 2004
Location: Pays du Glaude - France
Old 02-03-2008 , 08:49   Re: AdThemes - Cover those CS ads - NoAds
Reply With Quote #109

Good plugin, but i think it's too difficult for a lambda player to create the coordinate for all the maps with ads ....
Is it possible to modify your plugin to spray the model where you want ? like this you modify the ads ingame.
__________________
deejay87 is offline
Send a message via MSN to deejay87 Send a message via Skype™ to deejay87
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 02-03-2008 , 09:00   Re: AdThemes - Cover those CS ads - NoAds
Reply With Quote #110

I think that all ads locations are already stored in the .cfg file provided in the first post.

There's another "esay use" plugin, did you try it ?
http://forums.alliedmods.net/showthread.php?p=424583
__________________
- tired and retired -

- my plugins -
ConnorMcLeod 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 04:34.


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