Home   Help Search Login Register  

Author Topic: Some questions... ^^  (Read 1469 times)

0 Members and 1 Guest are viewing this topic.

mcnils

  • Guest
Some questions... ^^
« on: 12 Mar 2004, 19:50:41 »
Hi :)

I have some neat questions (go figure),
and maybe you people can point me in the right direction.
Ok, here we go:

1) Is there a way to restrict access to certain vehicles in multiplayer?
What i want to achieve is that for example only a pilot can use a chopper or a plane, and only a crew player can sit in tanks, the simple infantry soldier should have access only to light vehicles (trucks, jeeps and this sort).

2) I would also like to know if there is some way to prevent players to switch their weapons with the ones they find during the mission on the fallen enemies (AI), since i want players to stick to their soldier "class" they have choosen at the missions begin.

3) I use mobile respawn, players respawn at the location of a medical APC.
What i want to know about this is if it is possible to set different loadouts for the different soldiers once they respawn.

Thats it..
If you dont have the time to explain me in detail but you know scripts/etc
that would help me please point me in their direction.. Thanks.

Bye :)
« Last Edit: 12 Mar 2004, 20:01:19 by mcnils »

Offline Zombie

  • Members
  • *
  • Beware the night, the zombie walks among you
    • USI
Re:Some questions... ^^
« Reply #1 on: 13 Mar 2004, 17:07:41 »
ok, I'll try to help you here....

#1  Dunno, may not be possible
#2  Use a trigger something like
condition !alive eastplayer1 (or whatever name you like for each ai)
on activation eastplayer1 removemagazines "ak47"
  This way the weapon stays on the body, but has no ammo
or you could just delete the body as soon as it dies
#3 you can use a trigger here too
condition  ?alive playableunit1
on activation this exec "g36.sqs"
;;g36.sqs
removeallweapons player
player addmagazine "g36amag"
player addmagazine "g36amag"
player addmagazine "g36amag"
player addmagazine "g36amag"
player addmagazine "g36amag"
player addmagazine "g36amag"
player addmagazine "g36amag"
player addmagazine "g36amag"
player addmagazine "g36amag"
player addmagazine "g36amag"
player addweapon "g36a"
player Selectweapon "g36a"
Exit
just make a different name for each weapon type you want a certain unit to have.

I am certain there are more elegant solutions to your quesions, but my answers should work!

Offline benreeper

  • Members
  • *
  • I'm a llama!
Re:Some questions... ^^
« Reply #2 on: 14 Mar 2004, 14:12:20 »
All of that is possible but you'll need alot of scripts.
--Ben

mcnils

  • Guest
Re:Some questions... ^^
« Reply #3 on: 15 Mar 2004, 14:53:14 »
Thanks a lot Zombie.
Hereby number 3 is solved  :) !

There is still number 1 that is a bit an issue for me... Since i cant force my players to "roleplay" :-\ and i must put in some kind of mechanism to force this.

Number 2... Well yes i could make the enemy bodies disapear..
But that wouldnt be really nice to see  :-\ And naming each AI is a hell of work :-X

Benreeper.. I know that this is probably do able with scripts  :P
If you know where to find such scripts plz let me know :)

Offline myke13021

  • Contributing Member
  • **
  • Myke
Re:Some questions... ^^
« Reply #4 on: 16 Mar 2004, 19:28:20 »
maybe i got a solution for your first prob, about to restrict access to diff vehicles.
First, lock them all by default. Name all your playable loons (pilot1, pilot2, crew1, crew2 etc)

Then addacction a unlock script which checks which unit tries to unlock a vehicle. If it's a unit which CAN drive/fly the vehic, then unlock the vehic, else let the player know he's not allowed to get in this vehic.

Dunno how exactly it could be done, but as far as i know scripting, i think it can be done this way.

mcnils

  • Guest
Re:Some questions... ^^
« Reply #5 on: 19 Mar 2004, 20:33:14 »
Hmmmm.

I remember of a Nogova Virus mission where only the squad leader can drive a Bus,
but everybody can sit in as passenger... I wonder how this is done...

I could use something similiar in my mission...
But where to get the scripts?

UnPBO? :-\ I hate that...
Anyway... I guess i must do it or else i wont get a solution

mcnils

  • Guest
Re:Some questions... ^^
« Reply #6 on: 19 Mar 2004, 20:38:03 »

Almost forgot to thank you for your imput, Myke ^^