The Exiled

Shunned by Man, Accepted by Gods
* FAQ    * Search   * Members
* Login   * Register
It is currently Thu Mar 28, 2024 4:29 pm 

 View unanswered posts | View active topics


 Board index » General Area » Modding
Post new topic Reply to topic Users browsing this forum: No registered users and 9 guests
Author
Message
TE-Krogoth


User avatar
Joined: Tue Jun 07, 2005 8:01 am
Posts: 2092
Location: Texas
Post Posted: Fri Dec 30, 2005 4:26 pm    Post subject: Territories/Zones
Reply with quote
 
I'm working on a map, and I want it to be so that if you control the three certain switches for a couple of seconds, you win the match, kind of like a zones or territory game, how would I do that?


I want it to be map based so that the server doesn't need to be modded.



Image
Image
 Top Offline
Profile WWWYIM
Author
Message
TE-Braveskin

Joined: Thu Aug 11, 2005 3:28 am
Posts: 1176
Post Posted: Fri Dec 30, 2005 5:02 pm    Post subject:
Reply with quote
 
when you take control of a tower, have it check if the other towers are yours. if they are, have it schedule another check, that checks if all 3 towers are still yours, if they are, win. if not, then it will just not do anything until you gather all towers again.

 Top Offline
Profile
Author
Message
TE-Krogoth


User avatar
Joined: Tue Jun 07, 2005 8:01 am
Posts: 2092
Location: Texas
Post Posted: Fri Dec 30, 2005 5:33 pm    Post subject:
Reply with quote
 
Code please, I'm not a modder, just a mapper.


Image
Image
 Top Offline
Profile WWWYIM
Author
Message
TE-Hammy


User avatar
Joined: Thu Jul 14, 2005 5:43 pm
Posts: 3204
Post Posted: Fri Dec 30, 2005 6:00 pm    Post subject:
Reply with quote
 
:| ya...!!!!


This is not the sandwich you are looking for. Move along.
Image
Ze Sechs-fire wrote:
[22:00] [df]Braveskin: Can AfroMuffin spend the night at my house?
[22:00] [df]Braveskin: I have movize
[22:00] Hammy: No. You'll touch him.
[22:00] Hammy: With gusto.
[22:00] Hammy: He's not even a day old, pedophile.
[22:00] Hammy: >:l
[22:00] [df]Braveskin: plez!!
 Top Offline
Profile
Author
Message
Kigen


User avatar
Joined: Fri Jul 08, 2005 5:45 pm
Posts: 700
Location: Behind you....
Post Posted: Fri Dec 30, 2005 9:04 pm    Post subject:
Reply with quote
 
Actually thats something you add to your map. But it only can be done by scripting a little with your map unfortnately. :-/


Image
 Top Offline
Profile WWW
Author
Message
TE-Pengwin


User avatar
Joined: Tue Jun 07, 2005 5:39 pm
Posts: 2971
Location: Illinois
Post Posted: Fri Dec 30, 2005 9:51 pm    Post subject:
Reply with quote
 
boo

haahhahah

j/k

dunno why i posted here



Image
Retard + beta software = whiny bitch
TE-Gooberman wrote:
hammy would hit anything as long as he couldnt tell what its gender was.
 Top Offline
Profile WWWYIM
Author
Message
TE-Hammy


User avatar
Joined: Thu Jul 14, 2005 5:43 pm
Posts: 3204
Post Posted: Fri Dec 30, 2005 9:57 pm    Post subject:
Reply with quote
 
cause ur a pengwin

feel free to delete my post if nessecary ( ._.)



This is not the sandwich you are looking for. Move along.
Image
Ze Sechs-fire wrote:
[22:00] [df]Braveskin: Can AfroMuffin spend the night at my house?
[22:00] [df]Braveskin: I have movize
[22:00] Hammy: No. You'll touch him.
[22:00] Hammy: With gusto.
[22:00] Hammy: He's not even a day old, pedophile.
[22:00] Hammy: >:l
[22:00] [df]Braveskin: plez!!
 Top Offline
Profile
Author
Message
TE-Shugo


User avatar
Joined: Mon Sep 05, 2005 12:21 am
Posts: 70
Location: YaY ArEa, CaLiForNia
Post Posted: Fri Dec 30, 2005 9:59 pm    Post subject:
Reply with quote
 
umm i think you would have to open

objectives.cs inside the mod

and play around with this
Code:
function TowerSwitch::onCollision(%this, %object)
{
   //echo("switch collision ", %object);
   if(getObjectType(%object) != "Player")
      return;

   if(Player::isDead(%object))
      return;

   %playerTeam = GameBase::getTeam(%object);
   %oldTeam = GameBase::getTeam(%this);
   if(%oldTeam == %playerTeam)
      return;

   %this.trainingObjectiveComplete = true;
   
   %playerClient = Player::getClient(%object);
   %touchClientName = Client::getName(%playerClient);
   %group = GetGroup(%this);
   Group::iterateRecursive(%group, GameBase::setTeam, %playerTeam);

   %dropPoints = nameToID(%group @ "/DropPoints");
   %oldDropSet = nameToID("MissionCleanup/TeamDrops" @ %oldTeam);
   %newDropSet = nameToID("MissionCleanup/TeamDrops" @ %playerTeam);

   $deltaTeamScore[%oldTeam] -= %this.deltaTeamScore;
   $deltaTeamScore[%playerTeam] += %this.deltaTeamScore;
   $teamScore[%oldTeam] -= %this.scoreValue;
   $teamScore[%playerTeam] += %this.scoreValue;

   if(%dropPoints != -1)
   {
      for(%i = 0; (%dropPoint = Group::getObject(%dropPoints, %i)) != -1; %i++)
      {
         if(%oldDropSet != -1)
            removeFromSet(%oldDropSet, %dropPoint);
         addToSet(%newDropSet, %dropPoint);
      }
   }

   if(%oldTeam == -1)
   {
      MessageAllExcept(%playerClient, 0, %touchClientName @ " claimed " @ %this.objectiveName @ " for the " @ getTeamName(%playerTeam) @ " team!");
      Client::sendMessage(%playerClient, 0, "You claimed " @ %this.objectiveName @ " for the " @ getTeamName(%playerTeam) @ " team!");
    }
   else
   {
      if(%this.objectiveLine)
      {
         MessageAllExcept(%playerClient, 0, %touchClientName @ " captured " @ %this.objectiveName @ " from the " @ getTeamName(%oldTeam) @ " team!");
         Client::sendMessage(%playerClient, 0, "You captured " @ %this.objectiveName @ " from the " @ getTeamName(%oldTeam) @ " team!");
         %this.numSwitchTeams++;   
         schedule("TowerSwitch::timeLimitCheckPoints(" @ %this @ "," @ %playerClient @ "," @ %this.numSwitchTeams @ ");",60);
      }
   }
   if(%this.objectiveLine)
   {
      TeamMessages(1, %playerTeam, "Your team has taken an objective.~wCapturedTower.wav");
      TeamMessages(0, %playerTeam, "The " @ getTeamName(%playerTeam) @ " has taken an objective.");
      if(%oldTeam != -1)
         TeamMessages(1, %oldTeam, "The " @ getTeamName(%playerTeam) @ " team has taken your objective.~wLostTower.wav");
      ObjectiveMission::ObjectiveChanged(%this);
   }
   ObjectiveMission::checkScoreLimit();
}



Last edited by TE-Shugo on Fri Dec 30, 2005 10:00 pm, edited 1 time in total.
 Top Offline
Profile WWWYIM
Author
Message
TE-Pengwin


User avatar
Joined: Tue Jun 07, 2005 5:39 pm
Posts: 2971
Location: Illinois
Post Posted: Fri Dec 30, 2005 9:59 pm    Post subject:
Reply with quote
 
nah

im lazy



Image
Retard + beta software = whiny bitch
TE-Gooberman wrote:
hammy would hit anything as long as he couldnt tell what its gender was.
 Top Offline
Profile WWWYIM
Author
Message
TE-Shugo


User avatar
Joined: Mon Sep 05, 2005 12:21 am
Posts: 70
Location: YaY ArEa, CaLiForNia
Post Posted: Fri Dec 30, 2005 10:07 pm    Post subject:
Reply with quote
 
XD


Image

Image

Image
 Top Offline
Profile WWWYIM
Display posts from previous:  Sort by  
Post new topic Reply to topic Board index » General Area » Modding
Previous topic :: Next topic  
Go to page 1, 2, 3  Next
Page 1 of 3
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group