Page 1 of 2

Open sights?

Posted: Tue Jan 19, 2010 12:14 am
by Lev_Nougol
I've seen in some mods that some weapons lacked crosshairs, using open sights to aim instead.
Can this be done ssm, and how would one go about doing it?

If it can't be done ssm, I'd still like to know how so I can do it csm.
Thanks.


~Lev

Re: Open sights?

Posted: Tue Jan 19, 2010 12:20 am
by fo0k
Im guessing its this in the objects of the weapon..
simply remove that line..?

Code: Select all

ObjectTemplate.setCrossHairType CHTIcon
someone else can confirm.. but thats gotta be worth a try.. *csm

Re: Open sights?

Posted: Tue Jan 19, 2010 10:48 am
by Senshi
Dunno what you mean with "open sights". Do you mean ironsights? If so, it's "simply" by moving the camera to make it look over the weapon. If you want to do this for static weapons (like stat. MGs) its very easy, as the camera is simply an object with an absolute position which you can move around so it looks over the barrel. For soldiers, things get more difficult, I guess. You'd need to work on animations to make the soldier "lift" the gun to camera height and hold it still.

Re: Open sights?

Posted: Tue Jan 19, 2010 3:37 pm
by fo0k
this is true.. im assuming a weapon where the iron sights align anyway, but include a crosshair so just remove the ch.. This does require some movement of weapons. Find an existing weapon where the iron sights align properly then replicate this animation/position for other weapons. you will need to open those weapons in 3dmax and align the model with the one you replicated.. get all iron sights for all models in the same position and that could give you a pretty good 'easy' fix.

Re: Open sights?

Posted: Tue Jan 19, 2010 10:26 pm
by Lev_Nougol
Thanks, guys.
I appreciate it. :)


~Lev

Re: Open sights?

Posted: Thu Feb 24, 2011 5:45 am
by Swaffy
My mod [Swaffy'sMod] has weapons with iron sights. I find them easy to make, but take a lot of time and patience lining them up without using 3DS Max.

Re: Open sights?

Posted: Tue Mar 12, 2013 6:06 pm
by BotHunter
Just remove this line: ObjectTemplate.UseScope

http://bfmods.com/mdt/scripting/ObjectT ... Scope.html

Re: Open sights?

Posted: Wed Mar 13, 2013 12:33 am
by Swaffy
BotHunter wrote:Just remove this line: ObjectTemplate.UseScope
Well, that's one of the steps.

Re: Open sights?

Posted: Wed Mar 13, 2013 4:04 am
by Shrooms
CHTNone

Re: Open sights?

Posted: Wed Mar 13, 2013 9:12 am
by Senshi
Way to necro a two year old thread, Bothunter... :roll: