OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: hex on 12 Dec 2004, 21:20:45
-
hey,
im a newbie to mission making, bt i know how the init to change a soldiers weapon but it dont work, it doesent say any things wrong with the script and the soldier loses his weapon bt doesent hav the weapon i gave him.. its like it doesent work on my pc
-
write what you put in their init plz
-
We can't help you at all.
Basically because we have very little info to go on.
You might want to let us know what you are putting into the init line.
Planck
-
you're late planck, should pick up the pace ;D
-
The budgie distracted me.
Planck
-
budgie? :P
-
i am puting
removeallweapons this; this addmagazine "Flpmm4a1bcmag"; this addweapon "Flpm4a1m203cmag"
Note the " i dnt actually put in the script and i repeat the Addmagazine part so i have enuff ammo
-
Try:
removeallweapons this; this addmagazine "Flpmm4a1bcmag"; this addweapon "Flpm4a1m203c"
Only a guess mind as I don't know this weapon.
Budgie......Budgerigar.........a birdie......sitting on my head telling me he is a 'pretty boy' and a 'sexy buddy'.
Planck
-
nah its the rite weapon name cos i also tried it on a sniper but instead of that weapon i used the games M16 bt still didnt work
-
I would check and double/triple check that the magazine and weapon name are correct.
Planck
-
you are giving him these through a script you say? why? just use the init line. and that should work..... ???
-
lol thats wot i meant (newb) and i hav got the mag name and that rite
-
But......they don't really match:
Flpmm4a1bcmag
Flpm4a1m203cmag
Both are magazines.......no weapon
Which is correct?
Planck
-
no
weapon Flpm4a1m203cmag
mag flpm4a1bcmag
if u want il copy n paste the walk thru on here so u can c for ur self
-
perhaps you could post the config section concerning this, that will settle it once and for all
-
Sorry I must be out of touch here, weapons don't usually have 'mag' appended to their names.
Planck
-
wot u meen post in the config section?
(newb)
-
Are you getting these mag and weapon names from the config of the addon?
Planck
-
yes
-
Well post up the relevant section of the config.cpp then, so I can see it myself.
Planck
-
kk
-
class FLPM4A1M203CMag: FLPM4A1M203
{
scopeWeapon=2;
scopeMagazine=0;
displayName="M4A1 w/M203 (C-Mag)";
model="\FLP_M4A1\FLP_M4A1_M203_CMag_proxy.p3d";
muzzles[]={"M4A1CMagMuzzle","M203Muzzle"};
class M4A1CMagMuzzle: FLPM4A1CMag
-
I think you might find that the real weapon name is:
FLPM4A1M203
Try it and see.......I really can't see any point in someons naming their weapon with mag appended.
But then I've never made a weapon addon.
Planck
-
Actually I am more than a little confused.
You have:
Flpmm4a1bcmag...........as a magazine added
Flpm4a1m203cmag........as the weapon added
Note also one name has an extra 'm' in it.
I would have said the first was a bullet magazine and the second was a rifle grenade.
I really don't see any weapon names in there.
Planck
-
the extra m was a my typo..
and no they are correct weapon names and magazines
oh and the cmag is an acsesery ( iknow i spelt it wrong)
its a drum clip wot carries 100 shots and the addon has 25+ differ M4s
-
did you try it?
if not i suggest you do
planck generally will know what he is talking about
-
no, bcos its a differant gun
-
Weapon descriptions: |WeaponNames: |MagazineNames: |
---------------------------------------------------------------------------------
M4A1 |"FLPM4A1" |"FLPM4A1mag" |
M4A1 with 2 mags taped together |"FLPM4A12xMag" |"FLPM4A1mag" |
M4A1 with BETA C-Mag |"FLPM4A1CMag" |"FLPM4A1BCmag" |
M4A1 with M203 Grenade Laucher |"FLPM4A1M203" |"FLPM4A1mag" |
M4A1 with M203 and 2xMag |"FLPM4A1M2032xMag" |"FLPM4A1mag" |
M4A1 with M203 and C-Mag |"FLPM4A1M203CMag" |"FLPM4A1BCmag" |
M4A1 with m4 suppressor (-30 dB)|"FLPM4A1SD" |"FLPM4A1SDmag" |
M4A1 with m4 and 2xMag |"FLPM4A1SD2xMag" |"FLPM4A1SDmag" |
M4A1 with m4 and C-Mag |"FLPM4A1SDCMag" |"FLPM4A1SDBCmag" |
M4A1 with M203 and m4 suppressor|"FLPM4A1M203SD" |"FLPM4A1SDmag" |
M4A1 with M203, m4 and 2xMag |"FLPM4A1M203SD2xMag" |"FLPM4A1SDmag" |
M4A1 with M203, m4 and C-Mag |"FLPM4A1M203SDCMag" |"FLPM4A1SDBCmag" |
---------------------------------------------------------------------------------
most of the weapon names and mags
-
From your last post I would say the weapon name is:
FLPM4A1
The rest are all magazines in various combinations for this base weapon.
EDIT: excluding the FLPM4A1M203 which is the same weapon with the launcher and the FLPM4A1SD with silencer and the FLPM4A1M203SD which has both
Planck
-
yeh, bt i want the M4a1 M203 with the Cmag wot is
Flpm4a1m203cmag
( btw i suggest u download this file it rulez u can get it from operationflashpoint.cz)
-
i disagree planck
weapon:
FLPM4A1M203CMag
mag:
FLPM4A1BCmag
but there is no grenade.... ???
-
yeh thats wot also puzzled me... no nade
-
This is the line you should try in your units init field.
removeallweapons this; this addmagazine "Flpm4a1bcmag"; this addmagazine "Flpm4a1m203cmag"; this addweapon "FLPM4A1M203"
Planck
-
If not......I give up
Planck ;D ;D
-
lol
off the topic how long u guys been playing OFP?
ive been playing for 5 days..
-
i think i've heard of this before, was it made by Anarchy?
(a little off-topic)
-
no fliper
-
I do believe that:
Flpm4a1bcmag...........bullets
Flpm4a1m203cmag........grenade
FLPM4A1M203........rifle with grenade launcher
Planck
-
WRONG!
M4a1m203cmag IS the weapon
m4a1m203 is a completely differ weapon....
i jst think this part of the editor dnt work on my system cos its the 1st time ive tried this
-
try it out and see what you get before dismissing everything!!!
-
u dnt get me m8
M4a1 M203 is an m4 with nade launcher rite?
M4a1m203cmag is an m4 with nade launcher WITH a drum clip
i know this for a fact
-
ok
Post the complete config
Planck
-
or ask the guy who made it, or reinstall ofp and try it then.
-
ok thnx for ur help guys..
i gtg work at 6 am cya 2moz
-
You could also try this to check if your installation is faulty:
removeallweapons this; this addmagazine "M16mag"; this addmagazine "M16mag"; this addweapon "M16"
Planck