[Suggestion] Add new cvar for gibs and gore

24 replies [Last post]
rUnThEoN?!
Site administrator
Skullheadq3's picture
Offline
Joined: Dec 2005
Posts:
DE Germany
Re: [Suggestion] Add new cvar for gibs and gore

keeping all blood will create a objects overflow.

hurrenson: "This idiot is apparently not familiar with a rail/sniper style."

Matt
Newbie's picture
Offline
Joined: May 2010
Posts:
DE Germany
Re: [Suggestion] Add new cvar for gibs and gore
rUnThEoN?! wrote:

keeping all blood will create a objects overflow.

yep. skull is right. as i can remember it is limited to 500 objectives including all map stuff.

BOZO
Bozo's picture
Offline
Joined: Feb 2010
Posts:
Re: [Suggestion] Add new cvar for gibs and gore

Skull is right? Then you/he surely can point me to the part in the code where those 500 objects are defined? Chatterbox
Overflows come from data exceeding a fixed structures' boundary. These boundaries are defined by developers and not by nature or so something so it can be changed!

Matt
Newbie's picture
Offline
Joined: May 2010
Posts:
DE Germany
Re: [Suggestion] Add new cvar for gibs and gore

They limited it. But u can rewrite the code. I will look later to another forum and post u what i mean. Btw hi bozo

rUnThEoN?!
Site administrator
Skullheadq3's picture
Offline
Joined: Dec 2005
Posts:
DE Germany
Re: [Suggestion] Add new cvar for gibs and gore

source is by defrag guys, they have to know that value for stuff like combine a few hundred plasma bolts to one climb.

If you really want, write urself a config and go test it out lol

hurrenson: "This idiot is apparently not familiar with a rail/sniper style."

BOZO
Bozo's picture
Offline
Joined: Feb 2010
Posts:
Re: [Suggestion] Add new cvar for gibs and gore

Who's talking about a config? lol

rUnThEoN?!
Site administrator
Skullheadq3's picture
Offline
Joined: Dec 2005
Posts:
DE Germany
Re: [Suggestion] Add new cvar for gibs and gore

speed = 1, gravity 0, time to life = 999999 and firerate max?
hf testing :3

hurrenson: "This idiot is apparently not familiar with a rail/sniper style."

lectorgc_
lectorgc_'s picture
Offline
Joined: Aug 2010
Posts:
Re: [Suggestion] Add new cvar for gibs and gore
BOZO wrote:

the part in the code where those 500 objects are defined?

cg_localents.c

#define	MAX_LOCAL_ENTITIES	512
localEntity_t	cg_localEntities[MAX_LOCAL_ENTITIES];

It won't overflow. It will replace previous objects.

I have the enemy flag!

* lectorgc_ rolls the dice 2 times ⚅ ⚅ and gets 12

BOZO
Bozo's picture
Offline
Joined: Feb 2010
Posts:
Re: [Suggestion] Add new cvar for gibs and gore
lectorgc_ wrote:

#define	MAX_LOCAL_ENTITIES	512
localEntity_t	cg_localEntities[MAX_LOCAL_ENTITIES];

It won't overflow. It will replace previous objects.

Thanks! The define could be altered. I mean, it was defined somewhere in 1999 when a top-notch gaming PC had 350 MHz CPU, 16 MB Gfx and 128 MB RAM.

BOZO
Bozo's picture
Offline
Joined: Feb 2010
Posts:
Re: [Suggestion] Add new cvar for gibs and gore

I did a quick test with ioQuake and changed MAX_LOCAL_ENTITIES to 2048 and raised the default duration for the gibs to 10 minutes and played 10 I-can-win-bots on DM17 without any issues and my PC is already pretty outdated (built in 2006, single core AMD Athlon 64 3800+, GeForce 7900 GTO).