AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Approved Plugins (https://forums.alliedmods.net/forumdisplay.php?f=8)
-   -   de_survivor map fix (https://forums.alliedmods.net/showthread.php?t=92910)

Hunter-Digital 05-22-2009 00:29

de_survivor map fix
 
2 Attachment(s)
de_survivor fix v1.1
Author: Digi (aka Hunter-Digital)

A verry simple plugin that removes all 2D sprite snow and iritating flares from de_survivor map and adds a more realistic snowing environment. Plugin acts only on de_survivor map.

And a screenshot, before it's in left, after it's in right:

[IMG]http://img36.**************/img36/2046/desurvivor.jpg[/IMG]

But you best notice it in-game!

New version: 1.1 - using Hamsandwich and optimized!

Old version 1.0 still available and also was a little optimized but still uses only engine for backwards compatibility.
Updated engine version, some small optimization done :}
---------
Small update to both versions, removes the probability of plugin beeing active in maps starting with "de_survivor".

This plugin can be compiled via Web Compiler (aka "Get Plugin")

-Acid- 05-22-2009 01:42

Re: de_survivor map fix
 
Cool am using it! GJ

tuty 05-22-2009 06:05

Re: de_survivor map fix
 
in plugin_init you didnt get the mapname oO

hleV 05-22-2009 06:29

Re: de_survivor map fix
 
He did it in plugin_precache() which is called before plugin_init(). IMO a boolean that tells if the map is de_survivor would be better than check it with equal() in plugin_init().

xPaw 05-22-2009 06:33

Re: de_survivor map fix
 
You can remove de_survivor.zip, because its standart cs map, and all got it.

Hunter-Digital 05-22-2009 10:39

Re: de_survivor map fix
 
hleV, every little optimization helps, thanks :P

xPaw, oh... forgot xD

re-uploaded, not a new version but it has the boolean optimization :}

ingmar13 05-22-2009 11:08

Re: de_survivor map fix
 
don't make fun of 3D_mike!

he's our legend!

NETHERLANDS FTW

xPaw 05-22-2009 11:11

Re: de_survivor map fix
 
I would even use
PHP Code:

public plugin_precache( ) {
    new 
szMap32 ];
    
get_mapnameszMap31 );
    
    if( 
equalszMap"de_survivor" ) ) {
        
create_entity"env_snow" );
        
        new 
szModel[32], ent = -1;

        while((
ent find_ent_by_class(ent"env_sprite")) != 0) {
            
entity_get_string(entEV_SZ_modelszModel31);

            if(
equal(szModel"sprites/snow.spr") || equal(szModel"sprites/flare1.spr"))
                
remove_entityent );
        }
    }


Or even filetring when env_sprite spawns :d

Quote:

Originally Posted by ingmar13 (Post 832444)
don't make fun of 3D_mike!

We already did. ;)

Hunter-Digital 05-22-2009 19:08

Re: de_survivor map fix
 
aww C'MON :lol: it's just a simple plugin =)

oh... but wait a second, that doesn't work, deleting in precache... so leave I'll it as it is :P

D-TOX 05-22-2009 22:14

Re: de_survivor map fix
 
Does this plugin higher the brightness/gamma option ? Looks like Its pretty bright, most CS players use "Gamasutra" and that program gives you more gamma and brighness so you can see people in dark places on some maps. Could be pretty bright for some players :)


All times are GMT -4. The time now is 23:32.

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