AlliedModders
XFactor Servers

DecapiNation


Post New Thread Reply   
 
Thread Tools Display Modes
Author
robot
Junior Member
Join Date: Oct 2005
Plugin ID:
628
Plugin Version:
1.0.0.0
Plugin Category:
Fun Stuff
Plugin Game:
Counter-Strike: Source
Plugin Dependencies:
    Approver:
    Plugin Description:
    Don't lose your head!
    Servers with this Plugin:
    3 
    Old 11-11-2008 , 05:05   DecapiNation
    Reply With Quote #1

    DecapiNation
    Don't lose your head!

    Description

    Here is a little bit of fun. DecapiNation provides headless models and heads for CS:S and some code to decapitate players when headshot, knifed or gren'd.

    The fun part is that you do not immediately die when decapitated. Blood spurts from your neck as you lose blood and health. Your Point Of View changes to that of your head model (wherever that may be!).

    I have designed this with LDuke's excellent Grabber:SM plugin (http://forums.alliedmods.net/showthr...hlight=grabber) in mind. DecapiNation should be installed alongside it. With this combination, you can pick up peoples heads and move them around. Their POV follows the head and yes you can _re-attach_ the head thereby saving the player and stemming the blood flow! (Note that this is not a required dependency, without Grabber you just cant re-attach heads, nor can you carry your own ).

    YouTube Link
    http://au.youtube.com/watch?v=s2zM7EGYUfk

    CVARS

    name: sm_decapination_enabled
    default: 1
    help: Enable or disable this plugin.

    name: sm_decapination_spurtinterval
    default: 0.4
    help: Time in seconds between neck blood spurts.

    name: sm_decapination_bloodloss
    default: 1
    help: Health lost for each blood spurt

    name: sm_decapination_aimtolerance
    default: 10
    help: Tolerance factor for replacing heads using Grabber plugin by LDuke.

    name: sm_decapination_spurtsound
    default: player/footsteps/grass3.wav
    help: Sound for neck blood spurts.

    name: sm_decapination_checkinterval
    default: 1.0
    help: Time in seconds between check head/body positions for re-animation.

    Known Issues
    • I haven't LOD'd all the models - its a PITA
    • The view of the players own body when decapitated is not simulated. Therefore the weapon model does not show, cartridges eject from your head and the muzzle flash will also be attached to your head!
    • Occassionally the dark borders you get as spectator do not disappear when the next round starts.

    Credits

    .robot model editing, plugin coding
    munch ideas
    warfare ideas
    EVERYONE ON SOURCEMOD I stole code from all of you
    Attached Thumbnails
    Click image for larger version

Name:	de_dust0008.jpg
Views:	861
Size:	93.3 KB
ID:	33606   Click image for larger version

Name:	de_dust0009.jpg
Views:	611
Size:	87.1 KB
ID:	33607   Click image for larger version

Name:	de_dust0010.jpg
Views:	571
Size:	60.2 KB
ID:	33608   Click image for larger version

Name:	de_dust0011.jpg
Views:	485
Size:	62.6 KB
ID:	33609  
    Attached Files
    File Type: sp Get Plugin or Get Source (decapination.sp - 751 views - 13.8 KB)
    File Type: zip decapination-1.0.0.0.zip (1.90 MB, 799 views)

    Last edited by robot; 11-11-2008 at 08:36. Reason: Clarification
    robot is offline
    ThatGuy
    Senior Member
    Join Date: Nov 2007
    Old 11-11-2008 , 05:23   Re: DecapiNation
    Reply With Quote #2

    Quote:
    Originally Posted by robot View Post
    With this combination, you can pick up peoples heads and move them around. Their POV follows the head and yes you can _re-attach_ the head thereby saving the player and stemming the blood flow!

    Oh my god that's hilarious! haha reading that just makes me want to buy CSS and use this plugin!

    So if your head flies off your body, you can see your body move around and whatnot? In other words, your view will still be in the eyes of the head?
    __________________
    ThatGuy is offline
    robot
    Junior Member
    Join Date: Oct 2005
    Old 11-11-2008 , 05:25   Re: DecapiNation
    Reply With Quote #3

    Yes, I attach the player view to the head entity - it makes you very dizzy if your team mates start throwing your head around with Grabber hehehe
    robot is offline
    paegus
    Senior Member
    Join Date: Nov 2004
    Location: Edinburgh, Scotland
    Old 11-11-2008 , 15:43   Re: DecapiNation
    Reply With Quote #4

    can you change the health loss to something like a point_hurt from the player (if any) who swung the proverbial axe? that way they retain the credit for the hits and the eventual kill.
    __________________
    Confucius say: war not determine who right, war determine who left.

    Clandestine Cake Server | Hidden:SourceMod Project | Plugins
    paegus is offline
    Send a message via ICQ to paegus Send a message via AIM to paegus Send a message via MSN to paegus Send a message via Yahoo to paegus
    robot
    Junior Member
    Join Date: Oct 2005
    Old 11-11-2008 , 20:03   Re: DecapiNation
    Reply With Quote #5

    I had considered that but it was not done for the following reasons:
    • Adds complexity to code in that you then have to submit the timer events with all the player_hurt data. This gets messy when the attacker leaves the server or times out etc.
    • The player bleeds to death and is not killed as such. The attacker needs to finish the victim off or the victim needs a buddy to put his or her head back on.

    If I see a bunch of requests for this feature I will add it.
    robot is offline
    paegus
    Senior Member
    Join Date: Nov 2004
    Location: Edinburgh, Scotland
    Old 11-11-2008 , 20:09   Re: DecapiNation
    Reply With Quote #6

    true. though the only things you need are the player number and the weapon id: 2 integer array {client_entity, weapon_entity} if possible.

    I was looking at it without really wanting to re-attach the head. things like AWP shots, point blanks and grenades basically killing them almost instantly. but giving them that ZOMG moment as their view spirals away and their body dies within moments.

    hope it does make it in
    __________________
    Confucius say: war not determine who right, war determine who left.

    Clandestine Cake Server | Hidden:SourceMod Project | Plugins
    paegus is offline
    Send a message via ICQ to paegus Send a message via AIM to paegus Send a message via MSN to paegus Send a message via Yahoo to paegus
    jdproper34
    Junior Member
    Join Date: Sep 2008
    Old 11-28-2008 , 15:51   Re: DecapiNation
    Reply With Quote #7

    Hello..

    Will this work with HL2DM??
    jdproper34 is offline
    bolinux
    Member
    Join Date: Jul 2007
    Old 12-08-2008 , 13:18   Re: DecapiNation
    Reply With Quote #8

    Nice plugin, I run it on my deathmatch server.
    My request, can you please add cvars like:

    name: sm_decapination_headshot
    default: 1
    help: decapination on headshot

    name: sm_decapination_knife
    default: 1
    help: decapination on knifing

    name: sm_decapination_he
    default: 1
    help: decapination on granade

    So it would be better to customize, depend on which mod you use.

    TYIA
    bolinux is offline
    NoS
    Senior Member
    Join Date: Nov 2006
    Old 02-18-2009 , 13:13   Re: DecapiNation
    Reply With Quote #9

    Could you have a setting where decapitation only works when a person gets a headshot kill, like if I dink someone they will be fine, it I get them again in the head their head falls off.
    NoS is offline
    lassiter
    Junior Member
    Join Date: Aug 2006
    Old 02-18-2009 , 22:35   Re: DecapiNation
    Reply With Quote #10

    I am getting errors models instead of the player models I put everything where it goes any idea's?

    Never mind had to restart server.....

    Last edited by lassiter; 02-21-2009 at 10:26.
    lassiter 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 05:34.


    Powered by vBulletin® Version 3.8.1
    Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
    Theme made by Freecode Sponsored by Layered Technologies