Forum

How to make an aim command?

Discuss programming in the QuakeC language.

Moderator: InsideQC Admins

Postby ThePlasticBling » Fri Jun 11, 2010 5:26 pm

ceriux wrote:hey man try doing some menu tutorials iv developed my own form of menu's that was derived from the menu tutorials here. honestly i found that the menu tutorials are a good basic way to learn things like what .floats are and what not. ( and if you dont understand the difference between .float and float is "float" is for everything is global ".float" is for things like the player or his weapon, it really depends on the entitie its applied to. just keep trying . start with simpler mods and just reading through the .qc source till you start to realize what its actually saying. once you get used to .qc its almost like your reading a book and then writing a sentance. =) believe me i was in a similar state your in atm but i was just persistant try getting on irc i found its a little bit easier to learn if you can get someone there to explain things to you in real time. rather than spaced posts. good luck i hope you get better. maybe we can help each other out once i get out of school here in a month or so. =) once again GOOD LUCK and keep trying.


ok i will try them. i already got out of school :)
ThePlasticBling
 
Posts: 51
Joined: Fri Jun 04, 2010 10:18 pm

Postby ceriux » Fri Jun 11, 2010 5:36 pm

im 21 im in a vocational school :?
User avatar
ceriux
 
Posts: 2223
Joined: Sat Sep 06, 2008 3:30 pm
Location: Indiana, USA

Postby ThePlasticBling » Fri Jun 11, 2010 5:38 pm

ceriux wrote:im 21 im in a vocational school :?


im 14 im going to be in high school next year.

big step for me :D
ThePlasticBling
 
Posts: 51
Joined: Fri Jun 04, 2010 10:18 pm

Postby frag.machine » Fri Jun 11, 2010 6:49 pm

ThePlasticBling wrote:ok. so now i got an aiming impulse working :D

but the only problem is that when i shoot while the aiming model is showing, it turns back to the regular model thats not aiming. any ideas?


If you made it like in the example I passed (?), just set .iron_sight back to 1 after shooting.
I know FrikaC made a cgi-bin version of the quakec interpreter once and wrote part of his website in QuakeC :) (LordHavoc)
User avatar
frag.machine
 
Posts: 2090
Joined: Sat Nov 25, 2006 1:49 pm

Postby ThePlasticBling » Fri Jun 11, 2010 7:11 pm

frag.machine wrote:
ThePlasticBling wrote:ok. so now i got an aiming impulse working :D

but the only problem is that when i shoot while the aiming model is showing, it turns back to the regular model thats not aiming. any ideas?


If you made it like in the example I passed (?), just set .iron_sight back to 1 after shooting.


no actually i made a w_aimweapon function that changes to a different aiming model for each weapon when impulse 143 is typed.
i want to make the aim model stay until impulse 143 is typed again
ThePlasticBling
 
Posts: 51
Joined: Fri Jun 04, 2010 10:18 pm

Postby GiffE » Fri Jun 11, 2010 9:17 pm

ThePlasticBling wrote:lol ur right. i have been trying stuff that isn't copy and paste, but it never compiles :(

btw: what part of CT are you from? (im from portland :D )


I'm from Cheshire, which is not TERRIBLY far from Portland :D

One of the most important things you can learn early on is what the errors when you compile mean.
Also I would highly recommend changing your technique from changing models to changing frames, its overkill to have 2 of the same models.

For a toggle style ads, you should use 2 different impulses. One for aim and one for return to normal.

and DANG your young ThePlasticBling!...
GiffE
 
Posts: 170
Joined: Sun Oct 08, 2006 3:39 pm
Location: USA, CT

Postby ThePlasticBling » Sat Jun 12, 2010 1:43 am

GiffE wrote:
ThePlasticBling wrote:lol ur right. i have been trying stuff that isn't copy and paste, but it never compiles :(

btw: what part of CT are you from? (im from portland :D )


I'm from Cheshire, which is not TERRIBLY far from Portland :D

One of the most important things you can learn early on is what the errors when you compile mean.
Also I would highly recommend changing your technique from changing models to changing frames, its overkill to have 2 of the same models.

For a toggle style ads, you should use 2 different impulses. One for aim and one for return to normal.

and DANG your young ThePlasticBling!...


yeah but i think its just too much of a hasstle and too hart to make the frames. it messes up reloading
ThePlasticBling
 
Posts: 51
Joined: Fri Jun 04, 2010 10:18 pm

Postby Downsider » Sat Jun 12, 2010 2:18 am

i'm 15 i'm a sophomore in high school oh dayuuuuuuum
User avatar
Downsider
 
Posts: 621
Joined: Tue Sep 16, 2008 1:35 am

Postby GiffE » Sat Jun 12, 2010 4:23 am

ThePlasticBling wrote:
GiffE wrote:
ThePlasticBling wrote:lol ur right. i have been trying stuff that isn't copy and paste, but it never compiles :(

btw: what part of CT are you from? (im from portland :D )


I'm from Cheshire, which is not TERRIBLY far from Portland :D

One of the most important things you can learn early on is what the errors when you compile mean.
Also I would highly recommend changing your technique from changing models to changing frames, its overkill to have 2 of the same models.

For a toggle style ads, you should use 2 different impulses. One for aim and one for return to normal.

and DANG your young ThePlasticBling!...


yeah but i think its just too much of a hasstle and too hart to make the frames. it messes up reloading


When you reload you should come out of iron sights and do the normal frames, the only frames in ironsights mode should be fire and idle.

And if we're all saying our age... I'm 19 and a sophmore in college :D
GiffE
 
Posts: 170
Joined: Sun Oct 08, 2006 3:39 pm
Location: USA, CT

Postby ThePlasticBling » Sat Jun 12, 2010 12:49 pm

GiffE wrote:
ThePlasticBling wrote:
GiffE wrote:
ThePlasticBling wrote:lol ur right. i have been trying stuff that isn't copy and paste, but it never compiles :(

btw: what part of CT are you from? (im from portland :D )


I'm from Cheshire, which is not TERRIBLY far from Portland :D

One of the most important things you can learn early on is what the errors when you compile mean.
Also I would highly recommend changing your technique from changing models to changing frames, its overkill to have 2 of the same models.

For a toggle style ads, you should use 2 different impulses. One for aim and one for return to normal.

and DANG your young ThePlasticBling!...


yeah but i think its just too much of a hasstle and too hart to make the frames. it messes up reloading


When you reload you should come out of iron sights and do the normal frames, the only frames in ironsights mode should be fire and idle.

And if we're all saying our age... I'm 19 and a sophmore in college :D


thats what i have. a model of aiming and it also has firing in it.
ThePlasticBling
 
Posts: 51
Joined: Fri Jun 04, 2010 10:18 pm

Postby Arkage » Sat Jun 12, 2010 6:55 pm

I don't think your getting whats meant by frames. Think of frames as different models in the one model file. So if you model is called gun1.mdl and has shoot and reload frames, frames 0 to 5 could be shoot and frames 6 to 10 are idle. So if you have frames 10 to 15 firing while in iron sights and 16 to 20 is idile(don't use these as real frame numbers tho). So all you have to do is when shooting is check if .iron_sight is equal to 1. If it is use the iron sights frames (10 to 15 instead of 0 to 5). Same for the idle. Same can be applied to the reloading.

If you new to programing the best id suggest is to just read through Quake qc source, see how things are linked together don't worry if you don't get all of it, just keep trying out some tutorials here.

On the age thing I'm 18 if that means anything.
User avatar
Arkage
 
Posts: 66
Joined: Thu Nov 19, 2009 4:17 pm

Postby ThePlasticBling » Sat Jun 12, 2010 8:13 pm

Arkage wrote:I don't think your getting whats meant by frames. Think of frames as different models in the one model file. So if you model is called gun1.mdl and has shoot and reload frames, frames 0 to 5 could be shoot and frames 6 to 10 are idle. So if you have frames 10 to 15 firing while in iron sights and 16 to 20 is idile(don't use these as real frame numbers tho). So all you have to do is when shooting is check if .iron_sight is equal to 1. If it is use the iron sights frames (10 to 15 instead of 0 to 5). Same for the idle. Same can be applied to the reloading.

If you new to programing the best id suggest is to just read through Quake qc source, see how things are linked together don't worry if you don't get all of it, just keep trying out some tutorials here.

On the age thing I'm 18 if that means anything.


well heres the thing: for reloading, a different model is used. for example: v_shot_rel.mdl is the model played when reloading. so that pretty much means i have to make iron sights new models, not frames.
ThePlasticBling
 
Posts: 51
Joined: Fri Jun 04, 2010 10:18 pm

Postby ThePlasticBling » Sat Jun 12, 2010 8:45 pm

Arkage wrote:I don't think your getting whats meant by frames. Think of frames as different models in the one model file. So if you model is called gun1.mdl and has shoot and reload frames, frames 0 to 5 could be shoot and frames 6 to 10 are idle. So if you have frames 10 to 15 firing while in iron sights and 16 to 20 is idile(don't use these as real frame numbers tho). So all you have to do is when shooting is check if .iron_sight is equal to 1. If it is use the iron sights frames (10 to 15 instead of 0 to 5). Same for the idle. Same can be applied to the reloading.

If you new to programing the best id suggest is to just read through Quake qc source, see how things are linked together don't worry if you don't get all of it, just keep trying out some tutorials here.

On the age thing I'm 18 if that means anything.


ok, now i have firing with the iron sights working, but when i fire with the iron sights, it is single shot, not automatic.
ThePlasticBling
 
Posts: 51
Joined: Fri Jun 04, 2010 10:18 pm

Postby ThePlasticBling » Sun Jun 13, 2010 4:46 pm

anybody here...?
ThePlasticBling
 
Posts: 51
Joined: Fri Jun 04, 2010 10:18 pm

Postby ThePlasticBling » Sun Jun 13, 2010 8:00 pm

hello? i can use some help
ThePlasticBling
 
Posts: 51
Joined: Fri Jun 04, 2010 10:18 pm

PreviousNext

Return to QuakeC Programming

Who is online

Users browsing this forum: No registered users and 1 guest