Time To Live After Death

Ask questions, discuss ideas, get answers
Post Reply
Waldek
Posts: 49
Joined: Thu Mar 08, 2012 12:09 pm

Time To Live After Death

Post by Waldek »

I have increased the time within corpses stay visible after death in ObjectTemplate.timeToLiveAfterDeath. It works good when I create my own game (offline) however bodies dissapear after default 10 seconds in online servers. Why? Is there something that I need to do yet? Sadly I havent stumpled upon similiar topic so far
User avatar
Swaffy
Posts: 1715
Joined: Sun Aug 29, 2010 9:25 pm
Location: Cibolo, Texas

Re: Time To Live After Death

Post by Swaffy »

It would have to be changed server-side, I believe.
(Forum Thread|Download) Swaffy'sMod v0.34 | Download link to come Soon™
Nathaniel
Posts: 2
Joined: Sat Feb 25, 2012 6:33 pm

Re: Time To Live After Death

Post by Nathaniel »

This needs to be changed server-side in ObjectSpawnTemplates.con and the value at the end can range from 0-9999

Example:

ObjectTemplate.Active USSoldier
ObjectTemplate.TimeToLiveAfterDeath 9999
User avatar
Swaffy
Posts: 1715
Joined: Sun Aug 29, 2010 9:25 pm
Location: Cibolo, Texas

Re: Time To Live After Death

Post by Swaffy »

The problem with having a butt load of bodies on the map is that it increases CPU overhead.

A nice midpoint for having that for Co-Op is about one minute.
A nice midpoint for having that for Multiplayer is about two minutes.

If you set the time higher for Co-Op, a lot of bots will be dying and causing lag because of the bodies laying all over the map...
(Forum Thread|Download) Swaffy'sMod v0.34 | Download link to come Soon™
Waldek
Posts: 49
Joined: Thu Mar 08, 2012 12:09 pm

Re: Time To Live After Death

Post by Waldek »

So server side only, I've understood, :|
4399cxyd
Posts: 5
Joined: Sun Jan 12, 2014 2:17 am

Re: Time To Live After Death

Post by 4399cxyd »

Waldek wrote:So server side only, I've understood, :|
No ,friend.download it: http://pan.baidu.com/s/1zRQLg
and replace the original file,you will see bot have 255! :lol: wish you good luck .
4399cxyd
Posts: 5
Joined: Sun Jan 12, 2014 2:17 am

Re: Time To Live After Death

Post by 4399cxyd »

Waldek wrote:So server side only, I've understood, :|
Download it here, and replace the original file :http://pan.baidu.com/s/1zRQLg
wish you good luck ! :D
Attachments
ScreenShot21.jpg
Post Reply