Jump to content
paulo ve

Oxygen time

Recommended Posts

  On 6/14/2014 at 2:04 PM, skrunkdk said:

I have wished for a script like this, to use in freeplay modifications for a long time.

 

But the one, you are showing isn't going to be possible, since ERS script are encrypted to use for other players.

the possibility of an decrypt the scripts?

Link to comment
Share on other sites

The problem is that every person appears to support O2 !!!!


Is to modify to get along with limited water. 

So modify the (radioact) to (water_supply_main).


 

 

const char IMG[] = "LightOn";

int DummyGroup = 20;

Vector pos;

 

 

 

 object PCmdStartCon : CommandScript

 

 {

 

PCmdStartCon()

  {                                                                                                         //2

  SetIcon(IMG);

  SetCursor(IMG);

  SetRestrictions(RESTRICT_SELFEXECUTE);

  SetPriority(90);

}                                               

 

 bool CheckPossible(GameObject *Caller)

  {

  if (!Caller->IsValid())

  return false;

 

  if (Caller->GetObjectType()==TYPE_PERSON ||Caller->GetType() == VT_FIREFIGHTERS_GTF )

 

  {

  return true;

  }

 

  return false;

  }

 

 

  bool CheckTarget(GameObject *Caller, Actor *Target, int childID)

  {

  return true;

  }

 

 

void PushActions(GameObject *Caller, Actor *Target, int childID)

{

 

GameObjectList ra = Game::GetGameObjects("radioact");

if(ra.GetNumObjects() > 0)

{

GameObject *rao = ra.GetObject(0);

rao->SetContaminationArea(CONTAMINATION_CHEMICAL,2500.0f);

}

 

}

 

 

};

post-16729-0-48298200-1402796773_thumb.p

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...