Jump to content

  • Log in with Facebook Log in with Twitter Log In with Google Log In with Steam Sign In
  • Create Account
Photo

Random - How to make sniper sight on thompson

- - - - -

  • Please log in to reply
5 replies to this topic

#1
OFFLINE   Oxyzium

Oxyzium

    Regular Member

  • Banned
  • PipPipPip
  • 66 posts
5
A step in the right direction

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?

 



#2
OFFLINE   gaoesa

gaoesa

    Advanced Member

  • Management
  • PipPipPipPip
  • 4391 posts
341
Will become famous
  • LocationFinland

Sniper scope in existing sniper rifle is nothing more but zoom and a black overlay on screen.



#3
OFFLINE   Oxyzium

Oxyzium

    Regular Member

  • Banned
  • PipPipPip
  • 66 posts
5
A step in the right direction

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?



#4
OFFLINE   gaoesa

gaoesa

    Advanced Member

  • Management
  • PipPipPipPip
  • 4391 posts
341
Will become famous
  • LocationFinland

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.



#5
OFFLINE   Oxyzium

Oxyzium

    Regular Member

  • Banned
  • PipPipPip
  • 66 posts
5
A step in the right direction

I have looked deeply but nothing idicating to how it shows the reticle_eq.jpeg

hmm 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? like

if wp_thompson
weapalt = "gfx/misc/reticle_eq.jpeg"
end
 

I know that isn't proper code but lol How do i expand it



#6
OFFLINE   gaoesa

gaoesa

    Advanced Member

  • Management
  • PipPipPipPip
  • 4391 posts
341
Will become famous
  • LocationFinland

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.






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users