Page 1 of 1

Vehicle Class Limit

Posted: 2006-01-27 03:45
by Happy
I think this just might be the code that would let the pilot class be the only class to fly aircraft but as I am no coder it could be just a bunch of bs and I wouldn't know. http://bf2.fun-o-matic.org/index.php/Sc ... t#Download

Posted: 2006-01-27 04:58
by KingofCamelot
Personally, I don't like that script from a gameplay perspective and from a realism perspective. For gameplay, it doesn't stop players from entering aircraft, it only destroys the aircraft and kills the player. So, you can still have a bunch of idots continually jumping in planes and getting them destroyed, letting no one use them. For realism, it doesn't make much sense for people to die and blow up the airplane because they don't know how to fly it. ;) They may crash when trying to take off, but the thing isn't going to spontaneously explode because the sat in it.

Thats just my opinion, though. Personally I think the ideal solution is to stop players from entering the vehicle in the first place, but that doesn't look like its doable, atleast not at the moment. I think the next best solution would be to make the plane extremely hard to fly if the player isn't the pilot class.

Posted: 2006-01-27 06:01
by GRB
'[R-DEV wrote:KingofCamelot']Personally, I don't like that script from a gameplay perspective and from a realism perspective. For gameplay, it doesn't stop players from entering aircraft, it only destroys the aircraft and kills the player. So, you can still have a bunch of idots continually jumping in planes and getting them destroyed, letting no one use them. For realism, it doesn't make much sense for people to die and blow up the airplane because they don't know how to fly it. ;) They may crash when trying to take off, but the thing isn't going to spontaneously explode because the sat in it.

Thats just my opinion, though. Personally I think the ideal solution is to stop players from entering the vehicle in the first place, but that doesn't look like its doable, atleast not at the moment. I think the next best solution would be to make the plane extremely hard to fly if the player isn't the pilot class.

LOL :lol:

That's by far the best solution I've seen for this issue yet!

Posted: 2006-01-27 18:13
by Happy
Couldn't you change it to something like this
if vehicleType in ForbiddenTypes:
forbiddenClass = True
if 1 == mode:
#punish
mm_utils.msg_server( "To fly select pilot class cause this thing is going to kill you" % ( player.getName() ) )
vehicle.setDamage(0.00)
body.setDamage(0.01)

Posted: 2006-01-27 19:40
by Wolfmaster
Bong, I'm guessing that's a good suggestion but for the sake of my eyes, please change that colour!

Posted: 2006-01-27 19:42
by Happy
Better?

Posted: 2006-01-27 19:47
by Wolfmaster
Absolutely.