Raised This Month: $89 Target: $400
 22% 

[CSS] Throwing Knives


Post New Thread Reply   
 
Thread Tools Display Modes
Author
meng
Veteran Member
Join Date: Oct 2005
Location: us
Plugin ID:
1619
Plugin Version:
1.2.2b
Plugin Category:
Fun Stuff
Plugin Game:
Counter-Strike: Source
Plugin Dependencies:
    Servers with this Plugin:
    242 
    Plugin Description:
    Adds throwing knives to CSS.
    Old 04-26-2010 , 01:00   [CSS] Throwing Knives
    Reply With Quote #1

    CSS Throwing Knives

    Credit & Thanks
    MaTi, pimpinjuice, blodia, YouzAMenace, Greyscale

    Features
    • Primary attack throws a knife
    • Obeys mp_friendlyfire
    • Headshot detection
    • Steal other player's knives (optional)
    • Trail effect (optional)
    CVars *Auto generated config (cfg/sourcemod folder)
    PHP Code:
    // Amount of knives players spawn with.
    // -
    // Default: "3"
    // Minimum: "0.000000"
    // Maximum: "100.000000"
    sm_throwingknives_count "3"

    // Damage adjustment.
    // -
    // Default: "57"
    // Minimum: "10.000000"
    // Maximum: "200.000000"
    sm_throwingknives_damage "57"

    // Enable/disable dev. mode.
    // -
    // Default: "0"
    // Minimum: "0.000000"
    // Maximum: "1.000000"
    sm_throwingknives_dev "0"

    // Knives remaining display location. 1 = Hint | 2 = Key Hint
    // -
    // Default: "1"
    // Minimum: "1.000000"
    // Maximum: "2.000000"
    sm_throwingknives_display "1"

    // Enable/disable plugin.
    // -
    // Default: "1"
    // Minimum: "0.000000"
    // Maximum: "1.000000"
    sm_throwingknives_enable "1"

    // Headshot damage adjustment.
    // -
    // Default: "127"
    // Minimum: "20.000000"
    // Maximum: "200.000000"
    sm_throwingknives_hsdamage "127"

    // Set to "1" if using noblock for players.
    // -
    // Default: "0"
    // Minimum: "0.000000"
    // Maximum: "1.000000"
    sm_throwingknives_noblock "0"

    // If enabled, knife kills get the victims remaining knives. 0 = Disabled | 1 = Melee kills only | 2 = All knife kills
    // -
    // Default: "1"
    // Minimum: "0.000000"
    // Maximum: "2.000000"
    sm_throwingknives_steal "1"

    // Enable/disable trail effect.
    // -
    // Default: "0"
    // Minimum: "0.000000"
    // Maximum: "1.000000"
    sm_throwingknives_trail "0"

    // Velocity (speed) adjustment.
    // -
    // Default: "5"
    // Minimum: "1.000000"
    // Maximum: "10.000000"
    sm_throwingknives_velocity "5" 
    Natives
    PHP Code:
    SetClientThrowingKnives(clientnum);
    GetClientThrowingKnives(client); 
    Global Forwards *Enabled with sm_throwingknives_dev
    PHP Code:
    Action:OnKnifeThrow(client)
    Action:OnKnifeHit(victimattackerbool:headshot)
    OnPostKnifeKill(victimattackerbool:headshot
    More on that ^^^ .
    Attached Files
    File Type: inc cssthrowingknives.inc (850 Bytes, 10395 views)
    File Type: sp Get Plugin or Get Source (cssthrowingknives.sp - 23066 views - 13.3 KB)
    __________________
    .
    [ 1 Dumerils Boa | 1 Cali King ]...
    .
    I'm a lil' spirituous.

    Last edited by meng; 04-22-2011 at 14:38. Reason: Updated again. Again.
    meng is offline
    Send a message via Yahoo to meng
    Bacardi
    Veteran Member
    Join Date: Jan 2010
    Location: mom's basement
    Old 04-26-2010 , 07:22   Re: [CSS] Throwing Knives
    Reply With Quote #2

    Hahahaha... Have been thinking why can't throw this knife what you have on hand
    And it's hard to hit target.

    Ok, knife disapears after many seconds when you have throw it.
    But when I played with bots they stuck on ladder and when I looked, there where knife stuck on wall... and doesn't disapear.
    It appears when you walk into a wall (face lean ont the wall) and start throw knifes.
    Knife are inside wall and not disapear.

    *Would there add cvar knife_disapear 1/0 ?
    Knifes stay on field

    hmm and another ideas what can be impossible ?
    cvar option that
    - player have that one same knife if he throw that, he don't have that knife anymore. Stripped weapon knife (model pose T position when no weapons.)
    - Can collect knife on ground/wall after throwin it ??

    But great plugin for fun.
    Bacardi is online now
    Dr!fter
    The Salt Boss
    Join Date: Mar 2007
    Old 04-26-2010 , 07:43   Re: [CSS] Throwing Knives
    Reply With Quote #3

    Nice job meng sorry i couldn't ever finish it i just got burried work with school and work after you sent me your version to look at. Nice to see you released yours though. Aswell as added more to it nice!!
    Dr!fter is offline
    shustas
    SourceMod Donor
    Join Date: May 2007
    Location: London
    Old 04-26-2010 , 07:45   Re: [CSS] Throwing Knives
    Reply With Quote #4

    So... on 32 slots server with all throwing knives around... Will than not give lag and all models jumping around problem?
    __________________
    shustas is offline
    nonick
    BANNED
    Join Date: Jul 2008
    Old 04-26-2010 , 08:55   Re: [CSS] Throwing Knives
    Reply With Quote #5

    Cool and fun plugin. But i have little problem, i need let throw the knife after 30sec than starts round, so could someone rewrite here or PM a modified version to me
    Thx ;]
    nonick is offline
    meng
    Veteran Member
    Join Date: Oct 2005
    Location: us
    Old 04-26-2010 , 14:09   Re: [CSS] Throwing Knives
    Reply With Quote #6

    Quote:
    Originally Posted by Bacardi View Post
    Ok, knife disapears after many seconds when you have throw it.
    But when I played with bots they stuck on ladder and when I looked, there where knife stuck on wall... and doesn't disapear.
    It appears when you walk into a wall (face lean ont the wall) and start throw knifes.
    Knife are inside wall and not disapear.
    I can see that happening now that you mention it. I need to make sure it doesn't spawn inside anything since it needs to hit something and make a sound in order to trigger removal. Will see what I can do. Thank you for quick feedback!
    Quote:
    Originally Posted by Bacardi View Post
    *Would there add cvar knife_disapear 1/0 ?
    Knifes stay on field
    - Can collect knife on ground/wall after throwin it ??
    I have a version that does this. But it requires SDK Hooks ext. and doesn't work as nicely. I think its best to remove them. Having too many knives just lying around would eventually cause problems one way or another.
    Quote:
    Originally Posted by YouzAMenace View Post
    Nice job meng sorry i couldn't ever finish it i just got burried work with school and work after you sent me your version to look at. Nice to see you released yours though. Aswell as added more to it nice!!
    Thanks, it didn't seem like anybody else was working on it and I was still fooling around with it for a friend of mine. I thought this version without the need for an ext. would be a good release.
    Quote:
    Originally Posted by shustas View Post
    So... on 32 slots server with all throwing knives around... Will than not give lag and all models jumping around problem?
    Maybe somebody could give feedback on that. I kept that in mind when making this somewhat simplified version of the plugin. It should be ok, just need to fix the problem Bacardi mentioned.
    __________________
    .
    [ 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 04-26-2010 , 15:17   Re: [CSS] Throwing Knives
    Reply With Quote #7

    Updated. v1.0.

    Hopefully fixed the issue Bacardi mentioned.
    __________________
    .
    [ 1 Dumerils Boa | 1 Cali King ]...
    .
    I'm a lil' spirituous.
    meng is offline
    Send a message via Yahoo to meng
    nonick
    BANNED
    Join Date: Jul 2008
    Old 04-26-2010 , 16:51   Re: [CSS] Throwing Knives
    Reply With Quote #8

    meng,
    Could you write for me code, wich this work than round start after 30sec you just can throw knifes??
    nonick is offline
    Xp3r7
    SourceMod Donor
    Join Date: Jul 2006
    Old 04-26-2010 , 21:25   Re: [CSS] Throwing Knives
    Reply With Quote #9

    Nice to see this man and thank you to meng and YouzAMenace for doing my request!
    __________________
    Xp3r7 is offline
    Send a message via MSN to Xp3r7
    Xp3r7
    SourceMod Donor
    Join Date: Jul 2006
    Old 04-27-2010 , 05:43   Re: [CSS] Throwing Knives
    Reply With Quote #10

    I got reports that the knives never did damage to anyone and they still stuck in the wall.

    I have noblock on btw.
    __________________
    Xp3r7 is offline
    Send a message via MSN to Xp3r7
    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 15:29.


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