Product Chat / Prevent corpses from despawning ?

Author
Message
Duchenkuke
GameGuru VBOTB Developer
7
Years of Service
User Offline
Joined: 7th Jun 2016
Location: Germany
Posted: 21st Sep 2019 21:23 Edited at: 21st Sep 2019 21:42
Title says it - A character dies, and the corpes disapear shortly after. Is there a way to change that?
Can I make them stay?
Duchenkuke
GameGuru VBOTB Developer
7
Years of Service
User Offline
Joined: 7th Jun 2016
Location: Germany
Posted: 22nd Sep 2019 09:52
FIXED - Turn off ragdolls in the FPE and they will stay!

osiem80
5
Years of Service
User Offline
Joined: 24th Jan 2019
Location: Poland
Posted: 22nd Sep 2019 10:34
Is there another way so the ragdolls can stay?
PM
Teabone
Forum Support
17
Years of Service
User Offline
Joined: 8th Jun 2006
Location: Earth
Posted: 23rd Sep 2019 00:12
I've tried to do this myself. But what i find is you can get the characters to die/ragdoll. but then they teleport back to a given position. No way that i can figure out on how to get them to ragdoll and recover. Maybe someone has figured this out?
Store Assets - Store Link

i7 -2600 CPU @ 3.40GHz - Windows 7 - 8GB RAM - Nivida GeForce GTX 960
Teabone
Forum Support
17
Years of Service
User Offline
Joined: 8th Jun 2006
Location: Earth
Posted: 25th Sep 2019 15:32 Edited at: 25th Sep 2019 15:47
Would be great if GG had more spawning and respawning options in the property panel to help out with these processes. We used to have something like this in FPSC.

Spawn at Start (start spawned on map or wait to be triggered)
Respawn (enable or disable respawn)
Respawn Time (Duration)
Respawn Count (how many times it can respawn)
Store Assets - Store Link

i7 -2600 CPU @ 3.40GHz - Windows 7 - 8GB RAM - Nivida GeForce GTX 960
smallg
Community Leader
18
Years of Service
User Offline
Joined: 8th Dec 2005
Location:
Posted: 25th Sep 2019 18:07 Edited at: 25th Sep 2019 18:08
can you just use the preexit?


afaik a model shouldn't be cleaned away until it reaches the exit(e) function and the above will stop it doing so
though keeping a bunch of fully animated and detailed models for dead bodies is a bit of a bad idea in general unless you only have a few AI in the area
lua guide for GG
https://steamcommunity.com/sharedfiles/filedetails/?id=398177770
windows 10
i5 @4ghz, 8gb ram, AMD R9 200 series , directx 11
benjiboy
7
Years of Service
User Offline
Joined: 24th Mar 2017
Location: In the depths of rural Norfolk
Posted: 25th Sep 2019 18:56
In this vein, but different, (apologies for hi-jack) is it posssible to make a character spawn as a corpse? I'd like to make a disaster scene, using characters that had been alive in previous scenes.
You can't teach an old dog.
smallg
Community Leader
18
Years of Service
User Offline
Joined: 8th Dec 2005
Location:
Posted: 25th Sep 2019 21:34
if they ragdoll then simply set their hp to 0 right away
SetEntityHealth(e,0)
if not you will just want to play or set the death animation
SetAnimationFrames(#,#)
PlayAnimation(e)
(if you don't want the entire animation to play out set the frames to the end of the animation)

doiing it in the init(e) part should be fine
lua guide for GG
https://steamcommunity.com/sharedfiles/filedetails/?id=398177770
windows 10
i5 @4ghz, 8gb ram, AMD R9 200 series , directx 11
synchromesh
Forum Support
10
Years of Service
User Offline
Joined: 24th Jan 2014
Location:
Posted: 25th Sep 2019 21:45 Edited at: 25th Sep 2019 21:46
I actually prefer the death anim without the Ragdoll.
Weird I know. But they do look daft in mid air
The only person ever to get all his work done by "Friday" was Robinson Crusoe..
PM
3com
9
Years of Service
User Offline
Joined: 18th May 2014
Location: Catalonia
Posted: 25th Sep 2019 23:29
Quote: "keeping a bunch of fully animated and detailed models for dead bodies is a bit of a bad idea in general unless you only have a few AI in the area"

I think so, bad idea for perfomance sake.
Laptop: Lenovo - Intel(R) Celeron(R) CPU 1005M @ 1.90GHz

OS: Windows 10 (64) - Ram: 4 gb - Hd: 283 gb - Video card: Intel(R) HD Graphics
cpu mark: 10396.6
2d graphics mark: 947.9
3d graphics mark: 8310.9
memory mark 2584.8
Disk mark: 1146.3
Passmark rating: 3662.4

PM
benjiboy
7
Years of Service
User Offline
Joined: 24th Mar 2017
Location: In the depths of rural Norfolk
Posted: 26th Sep 2019 05:46
Thanks smallg. I'll give it a go. I have such low performance kit that the performance hit may actually be the killer
You can't teach an old dog.

Login to post a reply

Server time is: 2024-03-28 13:07:51
Your offset time is: 2024-03-28 13:07:51