Warning: include(/var/www/html/forum/Sources/../../../includes/depot_files/OFPEC_get_header_image.inc.php): failed to open stream: No such file or directory in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 146

Warning: include(): Failed opening '/var/www/html/forum/Sources/../../../includes/depot_files/OFPEC_get_header_image.inc.php' for inclusion (include_path='.:/usr/local/lib/php') in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 146

Notice: Undefined index: OFPEC in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 152

Notice: Trying to access array offset on value of type null in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 152

Notice: Trying to access array offset on value of type null in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 152
    Home   Help Login Register  

Author Topic: Respawn with what weapon?  (Read 1746 times)

0 Members and 1 Guest are viewing this topic.

Iwesshome

  • Guest
Respawn with what weapon?
« on: 12 Jul 2003, 06:40:07 »
Hi all,

My friend and I are working on our first MP map but we are running into a snag. We are currently using BAS addons but we are running into a snag with the respawn.

We are using the BAS Operator in which we have the character remove all weapons and then we add the weapons of choice for the initial start of the map.

removeAllWeapons S3; S3 addWeapon ""BAS_M4desREFLEX""; S3 addMagazine ""BAS_M4Mag""; S3 addMagazine ""BAS_M4mag""; S3 addWeapon ""BAS_Beretta""; S3 addMagazine ""BAS_BerettaMag""

When the character dies he will be respawned with only a handgun like we want him too, but instead of having his BAS M4 which we have removed on the respwan he show up with an M-16.

Now this is the code we use for the respawn...

"S1 addMagazine ""BAS_BerettaMag""; S1 addWeapon ""BAS_Beretta""; S1 selectWeapon ""BAS_Beretta""; S1 removeWeapon ""M16"""

Everything works good except that damn M-16 that shows up till we kill it with removeweapon... Why is it even showing up if it is not even in the mission.sqs? How do we get rid of it from the start so it won't even show up on the respawn?

Tactician

  • Guest
Re:Respawn with what weapon?
« Reply #1 on: 12 Jul 2003, 10:00:44 »
By default, all base-respawning players on west start with an M16 and a single clip.  All base-respawning east players start with an AK74 and a single clip.  This can't be changed.  Just remove all weapons on respawn and add whatever you like.

Iwesshome

  • Guest
Re:Respawn with what weapon?
« Reply #2 on: 12 Jul 2003, 17:16:36 »
Thanks... I will give it a go.