Page 1 of 1

Changing the bullet decal time

Posted: 2015-08-07 17:26
by Fragmentality
I'm looking for a way to change the time bullet holes stay in the environment, primarily for some testing purposes. Is this hardcoded, or is there a line of code in the files which can be used to change this timer? I'd appreciate help on this a lot. :)

Re: Changing the bullet decal time

Posted: 2015-08-07 18:53
by Mats391
try decalManager.timeToLive float -> float

Re: Changing the bullet decal time

Posted: 2015-08-07 19:44
by Fragmentality
Works perfectly, thank you very much.

Re: Changing the bullet decal time

Posted: 2015-08-10 04:57
by Cavazos
I enter this into the console for a local server and it gives me the message that the variable after "->" must start with "v_". How do I modify the value?

Re: Changing the bullet decal time

Posted: 2015-08-10 06:46
by Mats391
'[TP wrote:Cavazos;2090399']I enter this into the console for a local server and it gives me the message that the variable after "->" must start with "v_". How do I modify the value?
Just use the first part and replace "float" with the number you want: decalManager.timeToLive float
the -> is just return type of the function, so if it works it should print the same number you entered on the console.

Re: Changing the bullet decal time

Posted: 2015-08-11 14:14
by Fragmentality
I simply edited the gamelogicinit.con file, adding the extra line. Though it's probably not useful for all purposes since you can't edit it on the fly.

Re: Changing the bullet decal time

Posted: 2018-02-19 13:55
by Avenged_Fate
[R-DEV]Mats391 wrote:try decalManager.timeToLive float -> float
Bumping this thread because of few questions:
-can this be inputted into some kind of file inside of PR's directory or it is only inputted in the server's console?

-does this 'code' work for public servers or is it only applicable to local servers?

-is there a similar code to increase corpse count and, if so, how would the answers to the questions above be?