[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4668: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3815)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4670: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3815)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4671: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3815)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4672: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3815)
Battlefield Modding Tutorials BFMODS • View topic - Laser Dot Sight

Battlefield Modding Tutorials BFMODS

Battlefield Modding Tutorials
It is currently Fri Apr 19, 2024 11:46 am

All times are UTC




Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 49 posts ]  Go to page Previous  1 ... 3, 4, 5, 6, 7  Next
Author Message
 Post subject: Re: Laser Dot Sight
PostPosted: Sat Sep 05, 2009 7:03 pm 
Offline

Joined: Thu Mar 15, 2007 2:22 pm
Posts: 1253
i think it will always cut of after a short time period, we have tested some before without finding any solution. one idea i had was if one somehow could set the input trigger as they do with engines, eg the rocketengine is always on, but i havent got that to work as for now anyway.


Top
 Profile Send private message E-mail  
 
 Post subject: Re: Laser Dot Sight
PostPosted: Sat Sep 05, 2009 8:17 pm 
Offline

Joined: Mon Dec 10, 2007 12:29 am
Posts: 213
"round of fire -1 and have its ammo at -1 rate of fire 10000" Me earlier in thread......


Top
 Profile Send private message E-mail  
 
 Post subject: Re: Laser Dot Sight
PostPosted: Sat Sep 05, 2009 8:37 pm 
Offline

Joined: Tue Nov 27, 2007 7:56 pm
Posts: 1226
Maybe it makes for the roundoffire indeed. Is that zero?


Top
 Profile Send private message E-mail  
 
 Post subject: Re: Laser Dot Sight
PostPosted: Sat Sep 05, 2009 11:22 pm 
Offline

Joined: Mon Dec 10, 2007 12:29 am
Posts: 213
isn't -1 considered infinite in weapons, thus my thinking is that it will fire indefinitely at an incredible rate


Top
 Profile Send private message E-mail  
 
 Post subject: Re: Laser Dot Sight
PostPosted: Sun Sep 06, 2009 5:37 am 
Offline
User avatar

Joined: Mon Oct 20, 2008 9:25 pm
Posts: 103
Location: Canada
The laser dot sight is done! It still lags a bit, but works much better then before. I change the "ObjectTemplate.roundOfFire" to "-1" as WhatThe suggested & it seemed to smooth the effect out a bit. Not sure what this variable does... can't find info on MDT website about it. Another bug i found with the laser dot sight, is that not all objects have collision meshes... for example the us_assault_backpack. The laser dot also dances around on the soldiers. Overall though it works pretty good!

Here's the files for it if anyones wants



for the object/mesh of the projectile i just used the "bullet_m1.rs" & changed the mat id to 1051.

_________________
Image
Pray hard, die fast


Top
 Profile Send private message E-mail  
 
 Post subject: Re: Laser Dot Sight
PostPosted: Sun Sep 06, 2009 8:21 am 
Offline

Joined: Tue Nov 27, 2007 7:56 pm
Posts: 1226
-1 is infine, so it has a infinite round of fire.

This might very well be the solution for autofire


Top
 Profile Send private message E-mail  
 
 Post subject: Re: Laser Dot Sight
PostPosted: Sun Sep 06, 2009 3:15 pm 
Offline
User avatar

Joined: Mon Oct 20, 2008 9:25 pm
Posts: 103
Location: Canada
i just tried it with "ObjectTemplate.roundOfFire -1" & "ObjectTemplate.magSize -1" together & it still cuts out after about 5secs. where is this autofire listed anyways? i can't find it anywhere on the MDT website... only here.

_________________
Image
Pray hard, die fast


Top
 Profile Send private message E-mail  
 
 Post subject: Re: Laser Dot Sight
PostPosted: Sun Sep 06, 2009 3:39 pm 
Offline

Joined: Tue Nov 27, 2007 7:56 pm
Posts: 1226


Top
 Profile Send private message E-mail  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 49 posts ]  Go to page Previous  1 ... 3, 4, 5, 6, 7  Next

All times are UTC


Who is online

Users browsing this forum: No registered users and 62 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
cron
Powered by phpBB® Forum Software © phpBB Group