Bunker Plugin For MW3
Refer.txt has the sample code of plugins created for saving.Don't delete it and if you don't understand it don't edit it
SV_Config.ini
Code:
[BUNKER]
Save=true
//true saves the bunker false doesn't
Features:- Easily create walls,doors,floors and ramps
- Get co-ordinates and code
- Save bunkers in form of plugin with mapname
Commands:- !door-Create door
- !wall-Create wall
- !floor-Create floor
- !ramp-Create ramp
- !noclip-Enable noclip
- !nclip-Disable noclip
- !fwall-Resest wall vector
- !fdoor-Reset door vector
- !ffloor-Reset floor vector
- !framp-Reset ramp vector
How to use:
- Start a map
- Goto a place
- Type !wall
- Goto a higher place
- Type !wall again
After doing the above the code to make that wall would be printed on mapchange
Requires MapEdit!Included
Doesn't work with older MapEdit(1.2 required)
Credits:
@
archit
@
99IRock
Updates:
1.0:Initial release
1.2:Fixed a bug where '.' was displayed as ',' due to unknown reasons by removing decimals
1.3:The bunkers save now(may need restart of server)
thanks, even though up to now it only says new wall vector and nothing happens?
It should work I had tested it
You need MapEdit in plugins folder
(01-31-2013, 11:51)archit Wrote: [ -> ]It should work I had tested it
You need MapEdit in plugins folder
well i can't get it to work, just get a message, new vector etc etc
IT WORKS remember you must put the mapedit1.dll file also in plugins
It may not work?_? YOU MAD?
This plugin is tha best !!!!
(I tested it already, sooooooo cool)
Made 3 bunkers, in 30 mins, amazing.
Just omne problemo
I get the error if I paste code with that I have too much ","
123,123f, 321,3214f, 345,32122f
It should be
123f,321f,345f
you understand it ?
Should not happen see this
CSHARP Code
"CreateWall(" + GetString(wall.Vec1) + "," + GetString(wall.vec2) + ");"
static string GetString(Vector vec1)
{
return "new Vector(" + vec1.X + "f," + vec1.Y + "f," + vec1.Z + "f)";
}
(01-31-2013, 14:34)archit Wrote: [ -> ]Should not happen see this
CSHARP Code
"CreateWall(" + GetString(wall.Vec1) + "," + GetString(wall.vec2) + ");"
static string GetString(Vector vec1)
{
return "new Vector(" + vec1.X + "f," + vec1.Y + "f," + vec1.Z + "f)";
}
This code could fix it although it's working fine for me with your code.
Code:
String pos = "new Vector("+ vec1.X + "f/" + vec1.Y + "f/" + vec1.Z + "f";
pos = pos.Replace(",", ".");
pos = pos.Replace("/", ",");
also a sv_config option for the entity would be nice
example:
ramp=com_plasticcase_friendly
floor=com_plasticcase_trap_friendly etc.
very nice release though
(01-31-2013, 11:14)hillbilly Wrote: [ -> ]thanks, even though up to now it only says new wall vector and nothing happens?
i have the same problem it tells m new wall vector and nothing spawns and everyone gets the editing tool i did get some stuff to spawn after typing it over and over i had 2 others on the server with me and after typing !ramp 2 time everyone got stuck and couldn't move. Does this only work with the newest addon.dll cause i use v1.3 not the newest one