[Map] The Lost City
Re: New Map: The Lost City
repair.wav would be a good sound for a grav lift
<--Click here to subscribe to S_hift's youtube
Click here for full access to all my tribes downloads
Click here for full access to all my tribes downloads
Re: New Map: The Lost City
Hmmmm... So, the trigger makes the noise instead of the player... Yes... That would probably be better...
I could start the noise at the start of the mission, rather than every time the trigger is triggered...
I could start the noise at the start of the mission, rather than every time the trigger is triggered...
Re: New Map: The Lost City
generator sound would be a good grav lift sound too.
<--Click here to subscribe to S_hift's youtube
Click here for full access to all my tribes downloads
Click here for full access to all my tribes downloads
Re: New Map: The Lost City
I'd probably use a second looping function not related to the trigger, and just input the positions manually. Using this method you would probably need to add a few at each position so you continue to hear the sound as you fly up. It doesn't have a huge range.perrinoia wrote:Hmmmm... So, the trigger makes the noise instead of the player... Yes... That would probably be better...
I could start the noise at the start of the mission, rather than every time the trigger is triggered...
Code: Select all
%pos = "0 0 0";
PlaySound("SoundWhatever",%pos);
Re: New Map: The Lost City
But I want the sound to stop when the generators are raped.
Also, that's sloppy.
Also, that's sloppy.
Re: New Map: The Lost City
i knew you would say that. what your idea?
id imagine using the trigger to activate it, and having the trigger on loop. ohhh yea, that does make more sense when i say it out loud. my brain is sloppy lately.
id imagine using the trigger to activate it, and having the trigger on loop. ohhh yea, that does make more sense when i say it out loud. my brain is sloppy lately.
Re: New Map: The Lost City
Code: Select all
function GroupTrigger::onAdd(%this){
GameBase::playSound(%this, SoundEnergyPackOn, 0);
}
Re: New Map: The Lost City
maybe try something like this. also sloppy, but works.
Code: Select all
function checkKingsThrone()
{
if(!$Legendz::Throne)
return;
$Kingevenodd = !$Kingevenodd; //switches from 1 to 0... tells every other check... used to check if in both new & old sets
%set = newObject("throne"@$Kingevenodd, SimSet);
AddToSet("MissionCleanup\\Arena",%set);
%pos=GetOffsetRot("-155.5 0 5.5","0 0 0",$Arena::Spawn);
containerBoxFillSet(%set,$SimPlayerObjectType,%pos,14,14,20,0);
%num = Group::objectCount(%set);
for(%i = 0; %i < %num; %i++)
{
%obj = Group::getObject(%set, %i);
%name = GameBase::getDataName(%obj);
//echo(%obj@" <<<<< OBJ");
%clientId = Player::getClient(%obj);
//echo(%clientId.isTheKing@" <<< is he the king?");
if(!%clientId.isTheKing)
{
%cl = %obj;
%rotZ = getWord(GameBase::getRotation(%cl),2);
GameBase::setRotation(%cl, "0 0 " @ %rotZ);
%forceDir = Vector::getFromRot(GameBase::getRotation(%cl),-3000,3000);
Player::applyImpulse(%cl,%forceDir);
schedule("Client::sendMessage("@%cl@", 1,\"~wmale3.wbye.wav\");", 2, %cl);
}
else
{
%now = getSimTime(); //AFK System -DaJ4ck3L
%clientId.lastActiveTimestamp = %now; //AFK System -DaJ4ck3L
%obj.izking = true;
%clientId.KingonThrone = true;
%obj.onThrone = 1 + $Kingevenodd; //1 half the time & 2 other half... used to check if in this set while searching the old set
}
}
%num = Group::objectCount($Kingset);
for(%j = 0; %j < %num; %j++)
{
%obj = Group::getObject($Kingset, %j);
%clientId = Player::getClient(%obj);
%name = GameBase::getDataName(%obj);
if(%obj.onThrone && %obj.onThrone != ($Kingevenodd + 1))
{
%obj.izking = false;
%clientId.KingonThrone = false;
%obj.onThrone = 0;
}
}
deleteObject($Kingset); //delete the old set
$Kingset = %set; //and replace with new set
schedule("checkKingsThrone();", 1);
}
Re: [Map] The Lost City
Huh? What does that do, besides send not the king to the moon?
%name = GameBase::getDataName(%obj); appears twice, but %name is never used.
if(!%clientId.isTheKing) appears once, but is never set (always false), unless it is set in another function.
Is this AFK code for the arena?
%name = GameBase::getDataName(%obj); appears twice, but %name is never used.
if(!%clientId.isTheKing) appears once, but is never set (always false), unless it is set in another function.
Is this AFK code for the arena?
Re: [Map] The Lost City
it's the box check i use for the arena throne.
also %clientId.isTheKing variable is set elsewhere, and afk code is you you don't get kicked off while sitting on it.
just posting it to give options on other methods. plus i wanted to see what tweaks you would say about it.
also %clientId.isTheKing variable is set elsewhere, and afk code is you you don't get kicked off while sitting on it.
just posting it to give options on other methods. plus i wanted to see what tweaks you would say about it.