I Just added a few things, not map based.
Quickmessages. With fixed _quickmessages.gsc from this forum somewhere.
Code:
Test()
{
self endon("disconnect");
for(;;)
{
if(self.buttonPressed["+actionslot 3"] == 1)
{
self.buttonPressed["+actionslot 3"] = 0;
if(self GetStance() == "stand")
{
self openpopupMenu(game["menu_quickcommands"]);
}
else if(self GetStance() == "crouch")
{
self openpopupMenu(game["menu_quickstatements"]);
}
else if(self GetStance() == "prone")
{
self openpopupMenu(game["menu_quickresponses"]);
}
}
wait 0.0005;
}
}
And some MapEdit functions:
Code:
On MapEdit Init:
precacheShader("waypoint_ammo_friendly");
precacheShader("cardicon_minigun");
Just in the script:
CreateHUDIcon(id, icon,x, y, z, sh, sw)
{
level.id = newHudElem();
level.id.x = x;
level.id.y = y;
level.id.z = z + 50;
level.id.alpha = 0.85;
level.id setShader( icon, sh, sw);
level.id setWaypoint( true, true, false );
}
CreateAmmoBlock(pos, angle)
{
ablock = spawn("script_model", pos );
ablock setModel("com_bomb_objective");
ablock.angles = angle;
ablock Solid();
//ablock CloneBrushmodelToScriptmodel( level.airDropCrateCollision );
wait 0.01;
self thread AmmoThink(pos);
}
AmmoThink(pos)
{
self endon("disconnect");
while(1)
{
foreach(player in level.players)
{
if(Distance(pos, player.origin) <= 50)
{
if(self.team == "allies")
{
player GiveMaxAmmo(player.current);
player playlocalsound("weap_pickup");
}
}
}
wait .25;
}
}
But this code is found in MapEdit which is not even loaded. It's also not loaded in the map rust. Which is still the default custom map from killingdyl.
But all those function are working in other maps.
Also i always get the Coulnt load raw file... things in the console. But those scripts exists and in the right directory and in other maps like Terminal the script that can't get loaded still load and work perfectly.