Skip to content

Instantly share code, notes, and snippets.

@ZzZombo
Last active September 18, 2015 10:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ZzZombo/4f1c8ee1e1da6b574ffa to your computer and use it in GitHub Desktop.
Save ZzZombo/4f1c8ee1e1da6b574ffa to your computer and use it in GitHub Desktop.
#library "ACS"
#include "zcommon.acs"
script "ItemPicked"(int amount)
{
int id=ActivatorTID();
str s;
SetActivatorToTarget(0);
s=StrParam(n:0,s:" was picked up by ");
SetActivator(id,AAPTR_MASTER);
s=StrParam(s:s,n:0);
PrintBold(s:s);
}
script "Damage"(int amount,int inflicted,int health)
{
int id=ActivatorTID();
str s;
SetActivatorToTarget(0);
s=StrParam(s:GetActorClass(0),s:" took ",d:amount,s:" damage from ");
SetActivator(id,AAPTR_MASTER);
s=StrParam(s:s,n:0);
if(SetActivator(id,AAPTR_TRACER))
{
s=StrParam(s:s,s:" via ",n:0);
}
PrintBold(s:s);
}
script "s" OPEN
{
SpawnForced("TestProxy",0,0,0,UniqueTID());
SpawnForced("TestProxy2",0,0,0,UniqueTID());
}
@ZzZombo
Copy link
Author

ZzZombo commented Sep 6, 2015

library "MODSETT3"

include "zcommon.acs"

libdefine MAXPLAYERS 64

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment