Skip to content

Example: 2D Aim Down Sight 2

yvt edited this page Mar 15, 2014 · 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.

If semi.png, smg.png and shotgun.png were included this pak would be a complete mod as well as an example, because it would contain all of required scripts, sounds, images, and models. A complete mod is unlikely to cease working 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.