[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 - Disable weapons but in another way

Battlefield Modding Tutorials BFMODS

Battlefield Modding Tutorials
It is currently Sat Apr 27, 2024 9:06 pm

All times are UTC




Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 16 posts ]  Go to page 1, 2  Next
Author Message
PostPosted: Sat Jun 06, 2009 6:23 pm 
Offline

Joined: Fri Sep 21, 2007 6:59 pm
Posts: 61
Location: Hungary
Hi Everyone!

Well,i checked the forums for my question,but couldn't find the right answer.
So here it is:

I would like to make a server side modding for vanilla bf1942 in Battle of Britain.
I would like to force the players to use only knife and pistol.
But how could i disable the other wepons? BUT! How can i make it to look like this:
the player can't switch to other weapons, only the knife and the pistol.
So not this one: the player can hold out the stg44,it is in his arms,but the bullets don't hurt.no,i would like to use the nother option.

How couldi do that? Pls help!

Thx
Millerion

_________________


modding BF1942 not very difficult,but i have to learn more and more...

193.138.125.6:14567

Image


Top
 Profile Send private message E-mail  
 
PostPosted: Sat Jun 06, 2009 6:45 pm 
Offline
User avatar

Joined: Sat May 10, 2008 3:00 am
Posts: 1877
I don't know that you can do this without a crash or a change in client files (not SSM).

_________________
Image


Top
 Profile Send private message E-mail  
 
PostPosted: Sat Jun 06, 2009 7:21 pm 
Offline
User avatar

Joined: Fri Dec 28, 2007 12:24 pm
Posts: 204
Location: The Kingdom that is United
Yes I don't think you can do that SSM.

You can do:

ObjectTemplate.Active WeaponNameHere
ObjectTemplate.setInputFire c_PIMouseLook

This will still allow people to change to the weapon, but they can't pull the trigger.

_________________
Image


Top
 Profile Send private message E-mail  
 
PostPosted: Sat Jun 06, 2009 9:58 pm 
Offline

Joined: Thu Mar 15, 2007 2:22 pm
Posts: 1253


Top
 Profile Send private message E-mail  
 
PostPosted: Sat Jun 06, 2009 10:20 pm 
Offline

Joined: Tue Nov 27, 2007 7:56 pm
Posts: 1226
But then you need to have no ammo first.


Top
 Profile Send private message E-mail  
 
PostPosted: Sun Jun 07, 2009 3:09 am 
Offline

Joined: Mon Dec 10, 2007 12:29 am
Posts: 213
Then put a giant ammo killing bubble around the map that only works on everything but pistols and knives


Top
 Profile Send private message E-mail  
 
PostPosted: Sun Jun 07, 2009 3:18 am 
Offline

Joined: Mon Oct 09, 2006 12:51 pm
Posts: 782
Just change the Weapon triggers to something else, the game will be confused and they wont work. Its how "Pure" Infantry servers do their grenades.


Top
 Profile Send private message E-mail  
 
PostPosted: Sun Jun 07, 2009 3:43 am 
Offline
User avatar

Joined: Sat May 10, 2008 3:00 am
Posts: 1877
Yes but he wants the weapons completely unselectable, and I don't think that's possible SSM.

_________________
Image


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.  [ 16 posts ]  Go to page 1, 2  Next

All times are UTC


Who is online

Users browsing this forum: No registered users and 278 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:
Powered by phpBB® Forum Software © phpBB Group