MREL: Iron Site weapon draw code (Rerelease)


Devearica
04-26-2003, 10:33 AM
This was a thread from the old MSA forums for people who use iron sights. It removes the weapon from the screen so you can see what you're doing when not shooting. 'Tis quite cool and needed to be saved. ALL credits go to "kid smoke."

Devearica
04-26-2003, 10:35 AM
kid smoke
Sergeant

Registered: Oct 2001
Posts: 142
Status: Offline

I have been trying to do this forever...now I have. Let me know if u have probs with it. When i first did it it took a second to work. check your console to make sure it echos ironsite.cfg loaded...
when u click your left mouse (by default) it will bring up the weapon, when u release it the weapon will go away.
comments?

Devearica
04-26-2003, 10:36 AM
Kraut-Killer
Captain

Registered: Feb 2002
Posts: 629
Status: Online

great! i will try it right now!

stealth
Captain

Registered: Oct 2001
Posts: 414
Status: Offline

OMG!!!! GREAT WORK!! TRYING NOW!

EGETRae
Captain

Registered: Nov 2001
Posts: 521
Status: Offline

what is it? i don't get it :)

Sn00p
Captain

Registered: Oct 2002
Posts: 484
Status: Offline

do we need to install the IS models into the models folder, and then we can like move them back between default and IS? This is great work none the less, just confusing.

Sn00p
Captain

Registered: Oct 2002
Posts: 484
Status: Offline

ok heres the problem that Im having, when I go into to the game exec the IS.cfg the gun disappears. But when I hold down the right mouse the model comes back up to shoulder view. I have tried it with the IS weapons by glimsharp, and had the same results. The gun would disappear until you press the right mouse. What should I do, cause I thought they would go back between the shoulder or default view and IS.

Rotkopf
Major

Registered: Oct 2001
Posts: 1155
Status: Offline

that is technically not possible since yoú need two models of the same weapon for that. looking into the code, it seems right that your weapon disappears if not being in IS mode.

Sn00p
Captain

Registered: Oct 2002
Posts: 484
Status: Offline

oh ok man thanks. after I thought about it, it seemed that if I wanted the model to go back to shoulder view then I would have to have another model in there some how.

EMBAR
Major

Registered: Oct 2001
Posts: 1224
Status: Offline

i had the same problem as sn00p, if it works on your comp thats great, but no it doesn't work for us. Any tricks of the trade for us?

kid smoke
Sergeant

Registered: Oct 2001
Posts: 142
Status: Offline

ok heres what its for... mainly for IS models. rather than run around with an IS, it takes your weapon off screen. then u hold mouse 2, and then press fire while still holding mouse 2. releasing mouse 2 will hide the weapon again. so it affect it "raises" your weapon. Usually the complaint is that IS models take up 2 much screen room, this solves that problem by only being on screen when u r ready to aim....
You will have no weapon on screen, once u exec the IS.cfg, until u bring it up. it does not switch between shoulder view and iron site.

EMBAR
Major

Registered: Oct 2001
Posts: 1224
Status: Offline

ohhhhh then good show old chap! ;)

editor321
Captain

Registered: Jun 2002
Posts: 599
Status: Offline

Can you make it so we dont have to hold down mouse 2, instead toggling will make it easier to use. Could u do that?????

kid smoke
Sergeant

Registered: Oct 2001
Posts: 142
Status: Offline

bind "key" "r_drawviewmodel 1"
bind "key" "r_drawviewmodel 0"
key = any key u want

like
bind "mouse2" "r_drawviemodel 1"
bind "mouse3" "r_drawviewmodel 0"

1 = on
0 = off (for those that didnt know)

you dont even need the ironsite.zip above. I did it like that cuz it's as close to TTR (a ww2 unreal mod) method as i'll get....

Faceman
Colonel

Registered: Oct 2001
Posts: 1932
Status: Offline

kid smoke long time no see.

editor321
Captain

Registered: Jun 2002
Posts: 599
Status: Offline

how will this affect mg's deployment, and sniper zoom in if i bind it to mouse 2?, just wondering?

Devearica
04-26-2003, 10:38 AM
kid smoke
Sergeant

Registered: Oct 2001
Posts: 142
Status: Offline

i see your concerns with other binds. Heres all u have to do. Make a file called default.cfg

in that put your default binds.

In the code I have above "f2" will take your weapon off screen, and make it so u have to hold mouse2 to raise the sites, and mouse1 will fire. In the next instance if u want you can make the above binds into a .cfg also. I've attached a file that will put your binds back to normal.
just add a line in your config.cfg

bind "key" "exec default.cfg; r_drawviewmodel 1"

oh and hey faceman... love the new work!

07-19-2003, 02:18 PM
Uhhh can someone explain step by step how to do this cause i coudnt understand your readme andf where would i put he CFG file?

07-20-2003, 03:58 PM
can someone tell me how to bind the keys and where to put the CFG file after im done?

Day of Defeat Forum Archive created by Neil Jedrzejewski.

This in an partial archive of the old Day of Defeat forums orignally hosted by Valve Software LLC.
Material has been archived for the purpose of creating a knowledge base from messages posted between 2003 and 2008.