my first "help me" topic

Discuss programming in the QuakeC language.
Post Reply
ajay
Posts: 559
Joined: Fri Oct 29, 2004 6:44 am
Location: Swindon, UK

my first "help me" topic

Post by ajay »

My mod's 3rd person.
The player.mdl is set in client.qc in setmodel(self, "progs/player.mdl") etc.
I'm trying to change it to a different model, part way through a level, by a function that does an if ...... setmodel(self, "progs/different.mdl") etc.
All that happens is that it flickers, going through alternate original model, then new, then original, then new etc., etc., etc.

It's like it needs to cancel the old model (like my technical qc speak?) before the new one will "take".

Any ideas?

And yes, coding is fun.

cheers, ajay.
FrikaC
Site Admin
Posts: 1026
Joined: Fri Oct 08, 2004 11:19 pm

Post by FrikaC »

Do you still have the old id self.modelindex = modelindex_player; garbage in the code?
ajay
Posts: 559
Joined: Fri Oct 29, 2004 6:44 am
Location: Swindon, UK

Post by ajay »

I don't now.
Thank you :)
Post Reply