OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting Multiplayer => Topic started by: Sosa on 18 Jan 2004, 06:28:25

Title: Airstrike/Napalm in Multiplayer
Post by: Sosa on 18 Jan 2004, 06:28:25
I noticed that this airstrike/napalm addon (http://www.ofpec.com/editors/browse.php?browseon=&browsewhat=-1&catselected=-1_-1&catagory=-1&subcategory=-1_-1&numreturn=25&displayformat=0&ofpv=1&searchwhat=1&searchlevel=0&searchwhat=1&searchopts=&searchstring=napalm&x=20&y=10) will not work properly in multiplayer for anyone else besides the admin. Can anyone help me out?

*EDIT*: This is what happens, for the clients they see trees and buildings crumble without a hint of an explotion or visual fire. However, the admin who called in the strike can see everything 100% clearly with visuals and all. Aparently somewhere in the code it does not tell the clients to display these things.
Title: Re:Airstrike/Napalm in Multiplayer
Post by: MachoMan on 18 Jan 2004, 19:44:57
i took a quick peek into the scripts, i think that if u replace all the "camcreate" by "createVehicle" commands. Since it camcreates an a10.
Title: Re:Airstrike/Napalm in Multiplayer
Post by: Sosa on 18 Jan 2004, 21:23:43
i took a quick peek into the scripts, i think that if u replace all the "camcreate" by "createVehicle" commands. Since it camcreates an a10.
I will test that out but how will that fix the problem where users cant see the fire in the napalm strike?
Title: Re:Airstrike/Napalm in Multiplayer
Post by: Artak on 18 Jan 2004, 21:53:06
I had a quick once over too but I couldn't see anything wrong. Are you executing the script with an action maybe? (addaction and so on..).

If the script uses camcreate to create the plane and bombs there should be as many planes and bombs as there are clients (plus the server). I mean, if the script camcreates 5 bombs and you have 5 players then each player should have 25 bombs dropped.. unless the script only creates the bombs on the server which then sends the info on to the clients.. hmm hmm..

My wild quess is that the script creates the bombs and napalm effects on server only when it actually should create bombs on server only, but napalm effects on all computers.
Title: Re:Airstrike/Napalm in Multiplayer
Post by: Sosa on 18 Jan 2004, 22:26:37
Well I couldn't test out the previous "createveichle" idea yet but I can say that it should work for the other clients but it doesn't. However, the script is excuted by triggers. I followed the instructions included in the zip. My best guess is that it will only excute on one person's map, be it in multiplayer or single. I think this script soley relies on one set of triggers from which the script files reside. In the multiplayer case I would assume that because the server admin's computer has these scripts then it will only show the napalm and explotion effects on his computer, but that even doesn't make sense because all the other client have the addon properly installed.
Title: Re:Airstrike/Napalm in Multiplayer
Post by: MachoMan on 18 Jan 2004, 22:56:41
I had a quick once over too but I couldn't see anything wrong. Are you executing the script with an action maybe? (addaction and so on..).

If the script uses camcreate to create the plane and bombs there should be as many planes and bombs as there are clients (plus the server). I mean, if the script camcreates 5 bombs and you have 5 players then each player should have 25 bombs dropped.. unless the script only creates the bombs on the server which then sends the info on to the clients.. hmm hmm..

My wild quess is that the script creates the bombs and napalm effects on server only when it actually should create bombs on server only, but napalm effects on all computers.

Yeah, you're right (patially), but not all planes will behave the same way on every machine and effects are shown local. So u won't see if an a10 created on another machine camcreates napalm.
Title: Re:Airstrike/Napalm in Multiplayer
Post by: Kuro on 19 Jan 2004, 03:39:28
Hello,

i think you should use Snypir's support package.
It provides some really napalm.

Greetings
Kuro