Forum

Rusty on .qc

Discuss programming in the QuakeC language.

Moderator: InsideQC Admins

Rusty on .qc

Postby ceriux » Fri Dec 24, 2010 2:56 am

So im a bit rusty on qc. so i figured the best way to get to remembering is start with the scratch base.

so, here's my first question. i have finished the tutorial and the first thing i want to learn how to do is to setup a trace function.

so... what all is required to make a simple trace function? one that i could build other more complex functions off of?

(would be asking this on IRC but it doesnt seem to want to join any channels -.-)
User avatar
ceriux
 
Posts: 2223
Joined: Sat Sep 06, 2008 3:30 pm
Location: Indiana, USA

Postby Spike » Fri Dec 24, 2010 3:29 am

lookup the traceline/tracebox builtins?
Spike
 
Posts: 2892
Joined: Fri Nov 05, 2004 3:12 am
Location: UK

Postby ceriux » Fri Dec 24, 2010 3:35 am

hmm ic so i need to focus more on what i want to call the trace line okay thanks!

how about this what all is needed for a weapon pick up?

(first person stuff not needed my mod will be all 3rd person)

hmm after looking through the orginal progs i think i should start by giving the player a weapon to start with that he always spawns with. ill give him a Nailgun since i have a different use for the axe in mind.

where is attack_finished defined?
User avatar
ceriux
 
Posts: 2223
Joined: Sat Sep 06, 2008 3:30 pm
Location: Indiana, USA

Postby hondobondo » Fri Dec 24, 2010 7:01 pm

ceriux wrote:hmm ic so i need to focus more on what i want to call the trace line okay thanks!

how about this what all is needed for a weapon pick up?

(first person stuff not needed my mod will be all 3rd person)

hmm after looking through the orginal progs i think i should start by giving the player a weapon to start with that he always spawns with. ill give him a Nailgun since i have a different use for the axe in mind.

where is attack_finished defined?


go to items.qc and look up weapon_touch, and weapon_whatever
hondobondo
 
Posts: 207
Joined: Tue Sep 26, 2006 2:48 am

Postby ceriux » Sat Dec 25, 2010 12:02 am

weapon touch doesnt have what im looking for...
User avatar
ceriux
 
Posts: 2223
Joined: Sat Sep 06, 2008 3:30 pm
Location: Indiana, USA

Postby ceriux » Sat Dec 25, 2010 12:36 am

screw it not messing with scratch... far too advanced... i got all the code in to have a nailgun when you spawn and nothing ill stick with the regular progs....
User avatar
ceriux
 
Posts: 2223
Joined: Sat Sep 06, 2008 3:30 pm
Location: Indiana, USA


Return to QuakeC Programming

Who is online

Users browsing this forum: No registered users and 1 guest