Oxyzium Posted December 10, 2014 Share Posted December 10, 2014 Just wondering how I would be able to add the sniper sight to the thompson such as when I click mouse2 it shows the scope? Quote Link to comment Share on other sites More sharing options...
Management gaoesa Posted December 11, 2014 Management Share Posted December 11, 2014 Sniper scope in existing sniper rifle is nothing more but zoom and a black overlay on screen. Quote Link to comment Share on other sites More sharing options...
Oxyzium Posted December 11, 2014 Author Share Posted December 11, 2014 Yes thats correct! I already knew this.. The black overlay is called reticle_eq.jpeg which is found in the gfx/misc/but my question was how to add it to the thompson when clicking weapalt? Quote Link to comment Share on other sites More sharing options...
Management gaoesa Posted December 11, 2014 Management Share Posted December 11, 2014 You must create alternative mode for the weapon. EDIT:See example for it from sniper rifle or riflegrenade. The changes go deep into the bg_(x) files. Quote Link to comment Share on other sites More sharing options...
Oxyzium Posted December 11, 2014 Author Share Posted December 11, 2014 I have looked deeply but nothing idicating to how it shows the reticle_eq.jpeghmm Is there a way to make it show the reticle_eq like how would I create that - I have low knowledge and finding someone to teach me this is a struggle.Do I create a if? likeif wp_thompsonweapalt = "gfx/misc/reticle_eq.jpeg"end I know that isn't proper code but lol How do i expand it Quote Link to comment Share on other sites More sharing options...
Management gaoesa Posted December 11, 2014 Management Share Posted December 11, 2014 I don't know exactly how to do it. But I do remember that the scope overlay is drawn specifically in the cgame code because it needed some work on the widescreen support. If I remember right, you are drawning black areas and the reticle separately. if wp_thompson weapalt = "gfx/misc/reticle_eq.jpeg" end I don't know what that pseudo code was intended to ask, but it makes no sense in any way. What I meant is that you need to add a new weapon, which is in reality an alternative mode to another weapon. And the code you need to touch is everywhere. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.