PDA

View Full Version : DoD First Person Death (v1.1)


diamond-optic
02-19-2007, 11:21 PM
DoD First Person Death
- Version 1.1
- 04.06.2008
- diamond-optic

Information:

- You no longer see your dead body in 3rd person,
now you will fall to the ground with it :D

- Server List: http://www.game-monitor.com/search.php?rulename=dod_fpdeath_stats
CVARs:

dod_fpdeath "1" //Turn ON(1)/OFF(0)

dod_fpdeath_headonly "0" //Headshots only ON(1)/OFF(0)
dod_fpdeath_immunity "0" //Admin Immunity ON(1)/OFF(0)
Extra:

#define FPD_ADMIN ADMIN_IMMUNITY //Sets admin immunity level (default: flag a)
Version Info:

- 02.19.2007 Version 1.0
Initial Release

- 02.20.2007 Version 1.1
Added HeadShot only CVAR
Added admin immunity CVAR
Renamed everything from firstpersondeath to fpdeath (cvars too long)

- 04.06.2008 Version 1.1
Plugin re-release
DOWNLOAD MIRROR: http://www.avamods.com/download.php?view.60

Kiel |17.SS|
02-20-2007, 01:05 AM
oh wow, that sounds awesome. i'm going to try it out as soon as possible.

diamond-optic
02-20-2007, 03:12 PM
* updated to version 1.1 *


changes:
- 02.20.2007 Version 1.1
Added HeadShot only CVAR
Added admin immunity CVAR
Renamed everything from firstpersondeath to fpdeath (cvars too long)


MAKE NOTE OF THE CVAR CHANGES!!!!

i was having some trouble with the long cvar names, so i had to make them smaller.. :-\

Wilson [29th ID]
02-21-2007, 05:35 PM
I knew it was something this simple - never knew about that message.

Nice work diamond.

diamond-optic
02-21-2007, 06:31 PM
well the reason for using the YouDied message is quite simple...


forwarding the client death thru dodx.. if i called the change view stuff right from that.. it was too fast or something and sometimes it seemed that dod set it to 3rd person after it.. like as in it didnt always work... lol

and setting a task of 0.1 was too slow and you could see the 3rd person view for a fraction and it was annoying..

so i just looked at what msgs were called on client death.. saw the YouDied.. tried it.. and it worked fine.. lol


...tho now im gonna try and do some more on this.. im getting quite a few ppl complaining about how you always fall the same each time (even more ppl complaining about the whole thing together haha) so hopefully i can do something with it.. maybe thru changing the punchangle

=|[76AD]|= TatsuSaisei
02-21-2007, 08:50 PM
im getting quite a few ppl complaining about how you always fall the same each time (even more ppl complaining about the whole thing together haha)

omg !! people would complain that there is nothing to complain about if the case was so...

Kiel |17.SS|
02-22-2007, 02:29 AM
Haha when I saw this mod, I thought it would be like you'd fall with your guy, not just see it on the floor soo fast. But I like it still. Maybe if you have it stay there until they respawn, to prevent ghosting. Nice plugin!

Black Parade
02-22-2007, 03:08 AM
I Like it, but yeah what Kiel said would be nice. :D

=|[76AD]|= TatsuSaisei
02-22-2007, 12:39 PM
Haha when I saw this mod, I thought it would be like you'd fall with your guy, not just see it on the floor soo fast. But I like it still. Maybe if you have it stay there until they respawn, to prevent ghosting. Nice plugin!

yeah i took this mod and added a timed fade to black... so you see the sideways view and fade out to black before you ever notice the view change again... i do not mind the "quick" view change to the ground... it IS better then the default way of going to overhead ... I just do not care for how it then goes back into a normal spectator mode for a bit before respawning... hence the fade to black addition..

add this below the third set_pev inside the change_view function...


new DeathFade = get_user_msgid("ScreenFade")
message_begin(MSG_ONE_UNRELIABLE,DeathFade,{0,0,0} ,id)
write_short( 1<<13 ) //fade in/out time 1<<13 = 2^13 (2 to the 13th power)
write_short(~0) //duration of effect ~0 = maximum allowable time
write_short( 1) //type of fade (0-7) - uses binary addition
write_byte(0) //r
write_byte(0) //g
write_byte(0) //b
write_byte(255) //alpha - 255 = solid
message_end()



these are not needed in the code but were used as a reference... you can "combine" the effects by using binary addition, ie: 5 =(4+1) 3 =(2+1) 6 =(4+2)
#define FFADE_IN 0x0000 // Just here so we don't pass 0 into the function
#define FFADE_OUT 0x0001 // Fade out (not in)
#define FFADE_MODULATE 0x0002 // Modulate (don't blend)
#define FFADE_STAYOUT 0x0004 // ignores the duration, stays faded out until new ScreenFade message received

tegu
02-26-2007, 01:52 AM
oh wow, that sounds awesome. i'm going to try it out as soon as possible.

+1 man, Kick ass job there diamond!!

Kristiansen
02-01-2010, 03:01 AM
Is it possible to prolong the time you are dead in first person? It would be cool to like lie there dead for 5 seconds just watching the action around you before you spec/respawn etc.. Would be realistic too :-)

diamond-optic
02-03-2010, 02:48 AM
might be possible.. dont know how to do it tho