Forum

Bullet Range?

Discuss programming in the QuakeC language.

Moderator: InsideQC Admins

Bullet Range?

Postby sniperz227 » Thu Jun 30, 2011 6:02 pm

i was wondering if there was a function in the qc code where you can choose how far a bullet can go and if there is where and if not how would i write it would it be something with tracelines?
sniperz227
 
Posts: 112
Joined: Sat Apr 09, 2011 3:19 am

Postby Spike » Thu Jun 30, 2011 6:11 pm

yeah, TraceAttack in weapons.qc if I remember correctly.
Just change the distance traveled by the traceline. It won't impact/detect things outside the line traveled.
Spike
 
Posts: 2892
Joined: Fri Nov 05, 2004 3:12 am
Location: UK

Re: Bullet Range?

Postby sniperz227 » Thu Jun 30, 2011 6:17 pm

sniperz227 wrote:i was wondering if there was a function in the qc code where you can choose how far a bullet can go and if there is where and if not how would i write it would it be something with tracelines?


sorry i forgot to ask do you know what the armor code is called in kurok ?
sniperz227
 
Posts: 112
Joined: Sat Apr 09, 2011 3:19 am

Re: Bullet Range?

Postby behind_you » Sat Jul 02, 2011 6:44 am

sniperz227 wrote:sorry i forgot to ask do you know what the armor code is called in kurok ?


armor code called? it's probably the same as normal quake. self.armorvalue is your armor. works kinda like health
User avatar
behind_you
 
Posts: 237
Joined: Sat Feb 05, 2011 6:57 am
Location: Tripoli, Libya


Return to QuakeC Programming

Who is online

Users browsing this forum: No registered users and 1 guest