Skip to content

Example: 2D Aim Down Sight 2

YVT edited this page Jul 15, 2016 · 2 revisions

Image

http://yvt.jp/files/programs/osppaks/pngsight-5.pak

This example shows how to emulate 2D aim down sight by modifying skin script files. Prior to 0.0.9, this kind of modification required you to modify the source code and recompile OpenSpades. Using the new scripting feature introduced in 0.0.9, recompilation is no longer needed.

This pak can be made complete by adding semi.png, smg.png and shotgun.png, because the created pak would contain all of required scripts, sounds, images, and models. The created pak is unlikely to break in the future version of OpenSpades.

Note: sound files included in this pak are intended for testing purpose.

How to Try

To try this, you need semi.png, smg.png, and shotgun.png from AoS 0.75, and OpenSpades 0.0.10 or later.

  1. Copy pngsight-5.pak into Resources.
  2. Create Gfx directory in Resources.
  3. Copy semi.png, smg.png, and shotgun.png into the Gfx directory.