hi there!
Do you know any way to suppress, remove or hide deadbodies at player's death, how can you access it from a script if ever?
hi there!
Do you know any way to suppress, remove or hide deadbodies at player's death, how can you access it from a script if ever?
Sure. An easy example would be to exec some code on the the model tikis.
The Body ents use the player models. All player models use: models/player/base/include.txt
So in that file you can do:
init
{
server
{
setsize "-16 -16 0" "16 16 92"
american // recognised by AI as an American
exec global/removebody.scr //call your body code here
}
client
{
// Cache sounds here
}
}
and in removebody.scr there you can do:
main:
if (self && self.classname == "Body")
{
self delete
}
end
Last edited by 1337Smithy; November 14th, 2020 at 09:40 AM.
Thank you so much Smithy, that works fine and easy! Nice include.txt trick, it will be usefull