Forum

Have Weapon

Discuss programming in the QuakeC language.

Moderator: InsideQC Admins

Have Weapon

Postby Rikku2000 » Wed Oct 20, 2010 6:37 pm

Hello Guys i am new here, i have an question about Quake

Whats say me i have the weapon or not? i am looking in the source and i found this:
STAT_WEAPON i know STAT_ACTIVEWEAPON is that weapon i have curently so hope anyone understand me.

Thank you.
User avatar
Rikku2000
 
Posts: 49
Joined: Wed Oct 20, 2010 6:33 pm
Location: Germany

Postby DusterdooSmock » Wed Oct 20, 2010 9:53 pm

What you found was in the engine, for what you need, you would look in the QC source.

The QuakeC equivalent to what you found in the engine is this:

Code: Select all
if (self.weapon == IT_MYWEAPON)
{
// Do Stuff
}
DusterdooSmock
 
Posts: 170
Joined: Thu Aug 19, 2010 9:58 pm


Return to QuakeC Programming

Who is online

Users browsing this forum: No registered users and 1 guest