Last active
September 18, 2015 10:18
-
-
Save ZzZombo/4f1c8ee1e1da6b574ffa to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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()); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
library "MODSETT3"
include "zcommon.acs"
libdefine MAXPLAYERS 64