Space Engineers

Space Engineers

378 ratings
Scope Framework
2
2
   
Award
Favorite
Favorited
Unfavorite
Type: Mod
File Size
Posted
Updated
245.059 KB
14 Feb, 2022 @ 5:52pm
12 Nov, 2022 @ 4:01pm
25 Change Notes ( view )

Subscribe to download
Scope Framework

Description
Framework for sniper scopes. This mod is for weapon modders who want to add scopes to their hand weapons.

[serverblend.com]
Get your own high performance SE server from ServerBlend! (Sponsored)

Features

- Full MP support (DS included)
- Smooth movement at any zoom level
- WASD and jetpack moving in scope supported
- Scope sway and scope steady (hold shift)
- Optional iron sights (hold Ctrl when right click)
- Smooth zoom with Q/E

Modder Config

- Create a file called "ScopeConfig.txt" in the /Data/ folder of your mod

- In that file, add configs in the following format (multiple configs supported)

[M107RegScopeGun]
CameraSubtype=ScopeCamera
DelayInFrames=18
XOffset=0.0
YOffset=0.0
ZOffset=0.0
Sway=0.1

- Line by Line explanation:

1) This is the Physical Item ID of your hand weapon
2) This is the block subtype ID of the camera used for the scope
3) Number of frames between right click and entering scope view
4), 5), 6) X, Y, Z offsets of the scope. 0 is generally good
7) Sway amount. Set to 0 to disable. 0.1 is a good value

Camera block config
- Camera should be a 1x1x1 small block
- Set standalone to true, physics to true
- Displayname to empty (<Displayname></Displayname>)
- RequiredInput to 0

41 Comments
Qwertunchik 14 Apr @ 10:54am 
Hello. This mode have troubles with xbox gamepad. "Big" zoom does not work if i play using my gamepad. When I press LT (RMB analog) on my xbox gamepad only the minimum zoom works and the sight doesn`t work. The sight works only when i`m using the mouse and press RMB to zoom. I tested Barret M107A1 and Binoculars mods.
plusBrackets 2 Nov, 2023 @ 11:43pm 
Hi, 'GoToIdle' state doesn't reset the weapon zooming state when disable the 3rd person view in settings. It seems 'character.IsInFirstPersonView = false/true' not work. Is there a way to fix it?
aTruckgril Beverly ✿ 21 Jul, 2023 @ 3:43pm 
dang, thanks for the quick response :)
Klime  [author] 11 Jul, 2023 @ 6:20am 
Nope
aTruckgril Beverly ✿ 10 Jul, 2023 @ 8:33pm 
Hi Klime, I was wondering if this scope mod is compatible with your Harpoon (Rope) mod ? If not, would it possible to make them work together?
ncernic 4 May, 2023 @ 7:37pm 
Another warning: while using the energy shields mod and crossing an active shield the "camera entity" implodes and the game crash, similary as @Lancaster warns.
Is there any work around to these crashes?

as a note: i tested removing the ---- entity with the admin controls and reapears without crash... only crashes when something destroys this entity.
YungPro 25 Apr, 2023 @ 9:19pm 
Way to many glitches with the type 42 heavy gun, other players not using the thermal cam will see your vehicles as all white as if they were
sosykryto228 29 Jan, 2023 @ 10:30am 
understood, thanks for the answer)
Klime  [author] 29 Jan, 2023 @ 10:25am 
This mod has both clientside and serverside code. It won't run on Xbox, so cross-play won't work.
sosykryto228 29 Jan, 2023 @ 9:59am 
Hi! We constantly use your framework with different weapons on our servers and event games, for which we are very grateful to you. I don't quite understand whether this is a custom script or on the server side, will it be able to work on a cross-play server?