Archived copy of war3source.com, the War3Source forum (2009–2020), rebuilt from the Internet Archive by wc3mods.net. This page was captured on 2013-01-25 (original capture). Forum · All archived topics · Wiki · Bug tracker · Blog
Chat

War3:Source
January 24, 2013, 09:24:31 PM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Download: http://war3source.com/index.php?board=9.0
What is War3Source?: http://war3source.com/index.php?topic=200.0
Sample Stats: http://war3source.com/war3stats
Steam Community Group: http://steamcommunity.com/groups/war3source
War3Source SVN Checkout: http://ownageclan.com/svn/war3source/
War3Source servers: http://www.game-monitor.com/search.php?vars=war3_version=
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Way to do a fake death?  (Read 135 times)
Remy Lebeau
Full Member
***
Posts: 172


View Profile
« on: December 22, 2012, 11:32:32 PM »

So I'm trying to create a skill for a race that is a lot like the cloak and dagger (tf2 spy).  Basically, if someone shoots you, you appear to die, but you can still move around and then come alive again.

The only way I can think of doing it in CSS is to let the player actually die, then put them into freeview mode in spectator, and then after some time respawn them where they are looking.

Is there a way to a) put someone into freeview spectator mode, and then b) respawn them where they are looking?

I think I can probably work b) out, but need some help with a)...
Logged
Necavi
Sr. Member
****
Posts: 297


View Profile
« Reply #1 on: December 22, 2012, 11:50:56 PM »

Well, respawn them with no weapons, then let them roam around in noclip/god (for a limited time - watch for potential round ends) and then restore weapons/remove god/noclip upon end of skill or hitting a button.

Or better would be to prehook the fatal damage, set them as god (there's a god mode which allows bullets to phase through you, I believe) and then let them run around invisible for a little bit.

Don't forget to fire off a player_death event, for the notification and all that.
« Last Edit: December 22, 2012, 11:52:48 PM by Necavi » Logged

Ownz
Developer
Administrator
Hero Member
*****
Posts: 2169



View Profile WWW
« Reply #2 on: December 23, 2012, 07:02:24 PM »

add a death model that is convincing...
Logged

DarkEnergy
Necavi
Sr. Member
****
Posts: 297


View Profile
« Reply #3 on: December 23, 2012, 07:03:40 PM »

Indeed, something that has never come up for me so I don't know how to do that and omitted it.
Logged

Ownz
Developer
Administrator
Hero Member
*****
Posts: 2169



View Profile WWW
« Reply #4 on: December 23, 2012, 07:05:15 PM »

the fake death event may or may not interfere with the existing death hooks such as give xp etc...

overall its very complicated
Logged

DarkEnergy
Necavi
Sr. Member
****
Posts: 297


View Profile
« Reply #5 on: December 23, 2012, 07:06:22 PM »

Depends on whether you want to do things well or easily. Usually I do things well, which would involve quite a bit of complexity in this case, but you can be damn sure that I'd do it that way.
Logged

Remy Lebeau
Full Member
***
Posts: 172


View Profile
« Reply #6 on: December 23, 2012, 10:24:56 PM »

Thanks for the replies,  I'll keep trying out ideas to see what I can manage.  For now I did a simpler version that disappears and drops a smoke when they get shot. 
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!