12-10-2012, 17:57
12-10-2012, 17:57
12-10-2012, 18:07
(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:15
12-10-2012, 19:06
@DidUknowiPwn What class?
12-10-2012, 19:09
@99IRock
Did you get this to work?
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:14
(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.
12-10-2012, 19:23
as in?
gee gods i think mw3 just had an update
gee gods i think mw3 just had an update
12-10-2012, 19:29
Open the extension plugin then click project > add new class > insert the code
12-10-2012, 19:42