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

[CSS] Evil Deagle


Post New Thread Reply   
 
Thread Tools Display Modes
Author
meng
Veteran Member
Join Date: Oct 2005
Location: us
Plugin ID:
1376
Plugin Version:
1.3
Plugin Category:
Fun Stuff
Plugin Game:
Counter-Strike: Source
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    A 1Shot/1Kill deagle inspired by the 007 Golden Gun.
    Unapprover:
    Reason for Unapproving:
    bad coding style, bad practices in code
    Old 01-01-2010 , 00:03   [CSS] Evil Deagle
    Reply With Quote #1

    Evil Deagle

    Inspired by the 007 Golden Gun, the Evil Deagle is a 1Shot/1Kill deagle that spawns in the map every round. It only has a 1 bullet clip (unlimited reserve) and recoil (configurable). You must set spawn points which the plugin will choose from randomly. Special effects make it easy to spot.

    *New version 1.3 requires SM 1.3+. Also note that configs generated by versions prior to 1.3 will not work. Sorry about that but I added tools to the menu to make it easy to generate new configs.

    Installation / Usage
    Install EvilDeagle.smx in your sourcemod/plugins directory. Restart your server or change the map to load to plugin. Once the plugin has been successfully loaded, you can begin to save spawn points. Everything you need is in the menu under server commands. You can also use the commands listed below. Once you have at least 1 spawn point, you can enable the plugin. These spawn points are saved per map. If no spawn points exist for the current map, the plugin will disable itself. Have fun!

    *Currently all commands require admin flag RCON. This is configurable by editing the #define at the top of the script.

    Admin Cmds
    PHP Code:
    // plugin on/off (1/0) 
    sm_evildeagle

    // show spawn points
    // saved spawn points will be shown for 1 minute
    sm_evildeagle_show

    // save spawn point.
    // *uses your current position in the map.
    sm_evildeagle_save

    // remove spawn point
    // *uses your current position in the map.
    sm_evildeagle_remove 

    ConVars

    PHP Code:
    // location effects color 0 = red 1 = gold
    sm_evildeagle_efxcolor "0"

    // recoil effect adjustment [value range 100 - 700]
    sm_evildeagle_recoil "400"

    // damage adjustment [value range 100 - 700]
    sm_evildeagle_damage "300" 
    Attached Files
    File Type: sp Get Plugin or Get Source (EvilDeagle.sp - 2226 views - 14.0 KB)
    __________________
    .
    [ 1 Dumerils Boa | 1 Cali King ]...
    .
    I'm a lil' spirituous.

    Last edited by meng; 03-12-2010 at 16:47. Reason: update
    meng is offline
    Send a message via Yahoo to meng
    shustas
    SourceMod Donor
    Join Date: May 2007
    Location: London
    Old 01-01-2010 , 11:57   Re: [CSS] Evil Deagle
    Reply With Quote #2

    Hmm... interesting. So it spawns normal deagle just with 1 bullet and it does 999 damage? So do I have to drop my secondar weapon to pick it up? What happens to it when I shoot that bullet? It dissapears or stays empty?
    __________________
    shustas is offline
    meng
    Veteran Member
    Join Date: Oct 2005
    Location: us
    Old 01-01-2010 , 14:56   Re: [CSS] Evil Deagle
    Reply With Quote #3

    it has unlimited ammo. but only a 1 shot clip, forcing you to reload after each shot (like the 007 golden gun). i made it for Xp3r7 who wanted a Golden Gun for a 007 server. but since i cannot change the appearance of the weapon, i cant rightfully call it the golden gun.

    its still alot of fun, there are great physics effects. it still may need a little work. i tried making a video of it for fun but i failed. my videos always end up with terribly lagging audio. anybody know the best way to make videos?
    __________________
    .
    [ 1 Dumerils Boa | 1 Cali King ]...
    .
    I'm a lil' spirituous.
    meng is offline
    Send a message via Yahoo to meng
    meng
    Veteran Member
    Join Date: Oct 2005
    Location: us
    Old 01-01-2010 , 16:55   Re: [CSS] Evil Deagle
    Reply With Quote #4

    new version 1.0. fixed silly error, optimized a bit.
    __________________
    .
    [ 1 Dumerils Boa | 1 Cali King ]...
    .
    I'm a lil' spirituous.
    meng is offline
    Send a message via Yahoo to meng
    eee
    Member
    Join Date: Aug 2009
    Old 01-01-2010 , 17:41   Re: [CSS] Evil Deagle
    Reply With Quote #5

    Quote:
    Originally Posted by meng View Post
    but since i cannot change the appearance of the weapon, i cant rightfully call it the golden gun.
    I did something sort of like this for TF2 (boredom, not a released plugin, doesn't work anymore anyway since givenameditem offsets changed), which created and equipped a golden smg. After I created the entity via the givenameditem sdk call

    Code:
    new entity = SDKCall(hGiveNamedItem, client, "tf_weapon_smg", 0, 0);
    SDKCall(hWeaponEquip, client, entity);
    I (after setting other properties) simply did this:

    Code:
            SetEntityRenderMode(entity, RENDER_TRANSCOLOR);
            SetEntityRenderColor(entity, 255, 215, 0, 255);
    Will that work for your deagle entity spawned in this line:
    Code:
        new entity = CreateEntityByName("weapon_deagle");
        DispatchSpawn(entity);
    I don't own CS:S, so I could be way off, and the color might just change back when it gets equipped. If not, it might be possible to hook the item_pickup event:

    Code:
        "item_pickup"
        {
            "userid"    "short"
            "item"        "string"    // either a weapon such as 'tmp' or 'hegrenade', or an item such as 'nvgs'
        }
    After having recorded the entity's reference number in a variable, and then recheck the owner entity of the evil deagle is the userid (convert to client, I'm sure) from item_pickup and then apply the color in that way?

    I have absolutely no idea if any of this would work, again, as I do not own counterstrike source, I'm only offering suggestions. I wouldn't be surprised if there was some cardinal mistake I made in thinking any of that would work, and I don't want you to think I know for sure what I'm talking about.
    __________________

    Last edited by eee; 01-01-2010 at 17:43.
    eee is offline
    meng
    Veteran Member
    Join Date: Oct 2005
    Location: us
    Old 01-01-2010 , 18:22   Re: [CSS] Evil Deagle
    Reply With Quote #6

    ugh, new version 1.1. fixed a terrible exploit that would let you fly around the map

    @eee
    yea that would work for setting the color while its not held by a player. but keeping it that color while being equipped by a player would be near impossible (if not impossible). also you cant effectively change the first person model. so its all more trouble than its worth. so, i just changed the name instead .
    __________________
    .
    [ 1 Dumerils Boa | 1 Cali King ]...
    .
    I'm a lil' spirituous.
    meng is offline
    Send a message via Yahoo to meng
    eee
    Member
    Join Date: Aug 2009
    Old 01-01-2010 , 19:30   Re: [CSS] Evil Deagle
    Reply With Quote #7

    Quote:
    Originally Posted by meng View Post
    ugh, new version 1.1. fixed a terrible exploit that would let you fly around the map

    @eee
    yea that would work for setting the color while its not held by a player. but keeping it that color while being equipped by a player would be near impossible (if not impossible). also you cant effectively change the first person model. so its all more trouble than its worth. so, i just changed the name instead .
    Oh, darn. I thought I had something there. Well, sorry for wasting your time!

    Also
    Quote:
    that would let you fly around the map

    I'm sorry, that's hilarious
    eee is offline
    Xp3r7
    SourceMod Donor
    Join Date: Jul 2006
    Old 01-01-2010 , 19:45   Re: [CSS] Evil Deagle
    Reply With Quote #8

    Just to let you all know, this is a very fun plugin!

    When you kill someone with the deagle, it knocks them back and the closer you are, the farther back they go!

    When you set the spawn point, it spawns with a golden beacon coming from it (if its still set up like that) to let players know about it and yes, you have to drop your secondary gun to pick it up.

    When the person with the deagle gets killed, you can even pick it up where they died and it will be spawned back on the map on round start so no one keeps it.

    meng - do you still have to make .cfg files (ie. de_dust2.cfg) in /addons/sourcemod/configs/goldengun for each map?

    Also, there is THIS extension to set weapon models.

    Maybe an optional feature you could add in the future?
    __________________

    Last edited by Xp3r7; 01-01-2010 at 19:51.
    Xp3r7 is offline
    Send a message via MSN to Xp3r7
    meng
    Veteran Member
    Join Date: Oct 2005
    Location: us
    Old 01-01-2010 , 21:21   Re: [CSS] Evil Deagle
    Reply With Quote #9

    @Xp3r7

    its changed a little since the version you have. the dir is now "configs/evildeagle" but the plugin creates everything for you. you can just install the plugin, then copy any cfgs you've already set up to the new dir.

    i just added a convar just for you so you can keep the golden effect. thx for poppin in. and for the original idea. was fun to make if nothing else. and ill take a look at that extension again.
    __________________
    .
    [ 1 Dumerils Boa | 1 Cali King ]...
    .
    I'm a lil' spirituous.
    meng is offline
    Send a message via Yahoo to meng
    F Kruger
    Member
    Join Date: Oct 2009
    Location: Australia
    Old 01-31-2010 , 12:13   Re: [CSS] Evil Deagle
    Reply With Quote #10

    Hey I love your plugin, I installed it on my I run 2 servers in Australia, one rankd 3 and the other 5, The guys love this, Its a DM server so I have awp restriction on, I have set it so it sporn in only two different places, You should see the mad rush of 38 players all running for the Evil Deagle,
    Its funny watching all the scabs hanging around the player with it, waiting till they die.
    Any way great plugin.

    [DtK] F. Krueger
    F Kruger 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 15:26.


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