Page 1 of 1

[REQUEST] Rifle Scripting tutorial

Posted: Fri Apr 25, 2014 9:07 am
by Derzobbien
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

Re: [REQUEST] Rifle Scripting tutorial

Posted: Fri Apr 25, 2014 4:49 pm
by Roman_rus
if you need to fix it send me pm with models and scripts

Re: [REQUEST] Rifle Scripting tutorial

Posted: Sat Apr 26, 2014 5:11 pm
by Omicronkill
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.

Re: [REQUEST] Rifle Scripting tutorial

Posted: Wed Apr 30, 2014 9:45 am
by Derzobbien
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