Page 1 of 1

Item Counter

Posted: Wed Aug 29, 2007 6:30 am
by Landix
My Coders are a little bit lazy, so i want to ask here my little small questions.

YOu know my ballgame!? :)

We want to have an Item counter.
I was playing with the WII (Super Monkey Ball BananaBlitz) Great game!

And when the player collect some bananas, he feel better... :).

So my question for the quake 3 engine is, anybody can help us to make an item counter?
We want that the player can collect "item1.md3" and in the ownerdraw it show up how much the
player grabbed up.

Or can i use an ammo/armor item? This is the same function, right?

Some help would be nice :)

I dunno why i have 3 coders? But... what ever :)

thx
Landix

Re: Item Counter

Posted: Wed Aug 29, 2007 8:00 pm
by ^misantropia^
Add a field to the gclient_t struct and increment it whenever the player touches the item (Touch_Item in game/g_items.c). Set the item's "wait" key to -1 to prevent it from respawning.

Re: Item Counter

Posted: Thu Aug 30, 2007 4:43 am
by Landix
k thx
i show our results when the item counter is ready.

Re: Item Counter

Posted: Sat Sep 29, 2007 4:16 pm
by Landix
Will not work with my skills.

I try to replace the armor shard model and may be red and yellow armor,
set different values for the items and show them in the hud.

the only way i can do this :(