ItsMods

Full Version: MW3 Server Addon Extensions
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
(12-10-2012, 17:38)SailorMoon Wrote: [ -> ]@hillbilly , Just google system.core.dll, i found all importand dlls by this way.

worked ty.
(12-10-2012, 16:52)Ich1994 Wrote: [ -> ]Thinking about to make some function like:
MakeFloor(Vector from,Vector to); etc

Use our MapEdit class to help you on that.
(12-10-2012, 18:07)DidUknowiPwn Wrote: [ -> ]
(12-10-2012, 16:52)Ich1994 Wrote: [ -> ]Thinking about to make some function like:
MakeFloor(Vector from,Vector to); etc

Use our MapEdit class to help you on that.

Im pretty sure that i only need basic math. But thanks
@DidUknowiPwn What class?
@99IRock

Did you get this to work?

Code:
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Addon;



namespace Boxes
{
public class Class1 : CPlugin
{
public override void OnMapChange()
{
string map = GetDvar("mapname");
if (map == "mp_carbon")
{
Entity ent = SpawnModel("script_model", "com_plasticcase_trap_friendly", new Vector(-926f, -4535f, 4576f));
ent.CloneBrushModelToScriptModel(Extensions.FindAirdropCrateCollisionId());??

}

}

public override void OnFastRestart()
{
string map = GetDvar("mapname");
if (map == "mp_carbon")
{
Entity ent = SpawnModel("script_model", "com_plasticcase_trap_friendly", new Vector(-926f, -4535f, 4576f));
ent.CloneBrushModelToScriptModel(Extensions.FindAirdropCrateCollisionId());??
}


}


}

}
(12-10-2012, 19:09)hillbilly Wrote: [ -> ]@99IRock

Did you get this to work?

Code:
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Addon;



namespace Boxes
{
public class Class1 : CPlugin
{
public override void OnMapChange()
{
string map = GetDvar("mapname");
if (map == "mp_carbon")
{
Entity ent = SpawnModel("script_model", "com_plasticcase_trap_friendly", new Vector(-926f, -4535f, 4576f));
ent.CloneBrushModelToScriptModel(Extensions.FindAirdropCrateCollisionId());??

}

}

public override void OnFastRestart()
{
string map = GetDvar("mapname");
if (map == "mp_carbon")
{
Entity ent = SpawnModel("script_model", "com_plasticcase_trap_friendly", new Vector(-926f, -4535f, 4576f));
ent.CloneBrushModelToScriptModel(Extensions.FindAirdropCrateCollisionId());??
}


}


}

}

Create a 2nd class in the plugin.
as in?

gee gods i think mw3 just had an update
Open the extension plugin then click project > add new class > insert the code
@hillbilly @8q4s8 Make sure the namespace is the same in both classes.
(12-10-2012, 19:37)JariZ Wrote: [ -> ]@hillbilly @8q4s8 Make sure the namespace is the same in both classes.

For me it was also working with different ones but at the moment the plugin needs to get updated anyway
Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22