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)
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!
This is working great for me! THanks. I am making a HL2MP mod