From Valve Developer Community
Revision as of 16:29, 30 October 2008 by Mangr0v3 (talk | contribs) (Does not work)
Jump to: navigation, search

Weapon Origins?

How would i go about doing this, but for the default weapons? (So you can like make the default pistol come further out?)

I tried it, but it didn't work, and my mod just crashed to desktop (It entered the engine or something, and crashed, because there were no symbols in my debugger).


I've worked my Ironsight-code off this one, but mine is different, as it supporty rotating and fov.

It is also networked, so you can check on the server, if ironsight is active and you can network it.

The only thing that stayed the same is - ofcource - the algorythm for applying the ironsights and the parsing.

I only have a singleplayer-version, though. And it is not tested with the ep1-engine.

Shall I still write how I made my stuff? I find my approach more appealing..


Please do Z33ky :) --Craziestdan 12:37, 10 Sep 2008 (PDT)
Posted my code here. I hope I didn't forget something --z33ky
Awsome z33ky, thanks again as always :) --Craziestdan 07:47, 14 Sep 2008 (PDT)

Missing Line

Hi I just finished this tut or better I copy and pasted it in my mod :D There was one thing that didn't work for me and that was a missing #include "ivieweffects.h" in the baseviemodel_shared.cpp after adding this line it works for me, maybe someone can check this --AntiLamer 11:58, 9 Oct 2008 (PDT)

Does not work

This tut didnt work for me on OrangeBox code (HL2MP-based mod.) when I run toggle_ironsights I dont get ironsights but when i move or turn my gun goes off in random directions and is usually off the screen. toggle_Ironsights again does not fix it, nor does switching weapons. I followed the code to the letter. please help!