[REQUEST] Rifle Scripting tutorial

OpenSpades is an open source alternative client for AoS Classic and beyond! Runs on Windows, Mac, and Linux. Created by yvt.
Compatible with AoS Classic.
4 posts Page 1 of 1 First unread post
Derzobbien
Green Master Race
Green Master Race
Posts: 31
Joined: Wed Apr 10, 2013 3:34 pm


EDIT: if there's already a thread like this i apologize but i couldn't find anyone that solved this problem... just stupid people saying "you dont need scripts, download my pack it works blah blah" so if you're going to post idiot comments this is the wrong thread.

Hi all, if you're reading this you probably know that mdding the default openspades rifle will bring issues with the weapon size reduced and flying sights. now i've already made some weapons and this doesnt seem to happen when you make a sight that includes a .png file (or maybe its just a coincidence). I am asking for someone that can explain to me how it works... i've tried in the official github FAQ but there's nothing helpful for me.

P.s. i'm italian, go easy on me ^^

here's some screenshots of what happens

iron sights
Spoiler:
Image
Image
red dot sight
Spoiler:
Image
Image
Roman_rus
Deuced Up
Posts: 33
Joined: Mon Feb 17, 2014 5:57 pm


if you need to fix it send me pm with models and scripts
Last edited by Roman_rus on Sun Apr 27, 2014 6:47 pm, edited 2 times in total.
Omicronkill
Deuced Up
Posts: 87
Joined: Sat Oct 26, 2013 4:45 pm


The problem in the first screen is the size of the rifle. In openspades, the rifle's size is doubled, and I don't know why.

To adjust the height of the iron sights, you've to adjust pivots in slab6. The focus point (where you're shooting when you're aiming) is located three blocs and a half above the pivot on normal-sized weapons (SMG and Shotgun) and seven blocs above the pivot on the rifle.

To adjust the placement of your sights, you've to edit the pivot of Sight1.kv6 and Sight2.kv6 in slab6, only on the y-axis (I think).

I don't know if I'm clear, but I do this on my skins, so it works for me.
Derzobbien
Green Master Race
Green Master Race
Posts: 31
Joined: Wed Apr 10, 2013 3:34 pm


Omicronkill wrote:
The problem in the first screen is the size of the rifle. In openspades, the rifle's size is doubled, and I don't know why.

To adjust the height of the iron sights, you've to adjust pivots in slab6. The focus point (where you're shooting when you're aiming) is located three blocs and a half above the pivot on normal-sized weapons (SMG and Shotgun) and seven blocs above the pivot on the rifle.

To adjust the placement of your sights, you've to edit the pivot of Sight1.kv6 and Sight2.kv6 in slab6, only on the y-axis (I think).

I don't know if I'm clear, but I do this on my skins, so it works for me.
Thanks a lot :) i'll try that
4 posts Page 1 of 1 First unread post
Return to “OpenSpades Discussion”

Who is online

Users browsing this forum: No registered users and 23 guests