Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clarify license #6

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
4 changes: 4 additions & 0 deletions Hazard.c4d/Arena.c4d/BonusSpawnpoint.c4d/ActMap.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
[Action]
Name=Invis
Facet=10,0,10,10
NextAction=Hold
12 changes: 12 additions & 0 deletions Hazard.c4d/Arena.c4d/BonusSpawnpoint.c4d/DefCore.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
[DefCore]
id=BSPN
Version=4,9,8,2
Name=Bonus Spawnpoint
Category=C4D_StaticBack|C4D_Foreground|C4D_MouseIgnore
Timer=5
TimerCall=Timer
Width=10
Height=10
Offset=-5,-5
Picture=0,0,10,10
Collectible=1
1 change: 1 addition & 0 deletions Hazard.c4d/Arena.c4d/BonusSpawnpoint.c4d/DescDE.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
L�sst Extras erscheinen.
1 change: 1 addition & 0 deletions Hazard.c4d/Arena.c4d/BonusSpawnpoint.c4d/DescUS.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
This is the place where the bonuses spawn.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 2 additions & 0 deletions Hazard.c4d/Arena.c4d/BonusSpawnpoint.c4d/Names.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
DE:Bonus-Spawnpunkt
US:Bonus spawnpoint
135 changes: 135 additions & 0 deletions Hazard.c4d/Arena.c4d/BonusSpawnpoint.c4d/Script.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,135 @@
/*-- Spawnpoint --*/

#strict

local initialized, angle, spawntimer, objs, nextobj, timer;

global func PlaceBonusSpawnpoint(array ids, int iX, int iY, int timer)
{
var spwn = CreateObject(BSPN, iX, iY, -1);
spwn->AddBonusList(ids);
if(timer)
spwn->LocalN("spawntimer") = timer;
return(spwn);
}

/* Listenverwaltung */

// Bonusliste f�llen
public func AddBonusList(array ids)
{
objs = ids;
}

public func AddBonus(id idB)
{
objs[GetLength(objs)] = idB;
}

public func RemoveBonus(id idB)
{
var newarray = CreateArray();
for(var bon in objs)
if(bon != idB)
newarray[GetLength(newarray)] = bon;
objs = newarray;
if(nextobj == idB)
GetRandomBonus();
}

/* Sonstiges */

protected func Initialize()
{
// Standardtimer = 2500 Frames
spawntimer = 2500;
SetClrModulation(RGBa(0,0,0,255));
objs = CreateArray();
}

protected func Timer()
{
// Noch nicht initialisiert?
if(!initialized)
// Ein Objekt zur Verf�gung?
if(GetLength(objs))
// Initialisieren
return(Initialized());
// Kein Bonus?
if(!GetLength(objs))
{
// Nicht mehr initialisiert
initialized = false;
return();
}
// Tolle Effekt starten
angle += 10;
if(angle >= 360) angle = 0;
SetObjDrawTransform(1000, 0,0,0, 1000, Sin(angle, 8)*1000 - 2000,0, 1);
if(Random(2)) CreateParticle("NoGravSpark", RandomX(-5,5), RandomX(5,10), 0, -5, 25, nextobj->~Color());
// Timer runterz�hlen
if(timer) DecreaseTimer();
}

private func Initialized()
{
// Zufallsbonus aussuchen
GetRandomBonus();
// Unsichtbar werden
SetAction("Invis");
// Transformation
SetObjDrawTransform(1000, 0,0,0, 1000, -5000,0, 1);
Local() = true;
// Initialisiert
initialized = true;
}

/* Timer runterz�hlen */

private func DecreaseTimer()
{
// Timer runterz�hlen
timer -= 5;
if(timer <= 0)
{
// Objekt ist wieder da
timer = 0;
Local() = true;
SetVisibility(VIS_All());
}
}

public func RejectEntrance(object pClonk)
{
// Objekt ist ein Clonk?
if(!(GetOCF(pClonk) & OCF_CrewMember)) return(1);
// Darf einsammeln
if(Local())
{
if(nextobj->~Activate(pClonk)) {
PlayerMessage(GetOwner(pClonk),Format("<c %x>%s</c>",nextobj->~Color(),GetDesc(0,nextobj)),pClonk);
Sound("Grab", 0, pClonk, 0, GetOwner(pClonk)+1);
Collected(GetOwner(pClonk));
}
}
return(1);
}

private func Collected(int iPlr) // Regelt, dass ein Spieler das Objekt einsammelt
{
// Timer hochsetzen
timer = spawntimer;
// Nicht mehr einsammelbar
Local() = false;
// Nicht mehr sichtbar
SetVisibility(VIS_God());
// Neuen Bonus ausw�hlen
GetRandomBonus();
}

private func GetRandomBonus()
{
// nextobj belegen
nextobj = objs[Random(GetLength(objs))];
SetGraphics(0, 0, nextobj, 1, 1);
}
Binary file not shown.
10 changes: 10 additions & 0 deletions Hazard.c4d/Arena.c4d/Bonuses.c4d/AmmoExpert.c4d/DefCore.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
[DefCore]
id=AEXB
Version=4,9,8,2
Name=AmmoExpert
Category=C4D_StaticBack
Width=10
Height=10
Offset=-5,-5
Components=AEXB=1
Picture=0,0,10,10
1 change: 1 addition & 0 deletions Hazard.c4d/Arena.c4d/Bonuses.c4d/AmmoExpert.c4d/DescDE.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Sowas, sieht so aus als w�hren deine Munitionsmagazine auf einmal doppelt so gro�!
1 change: 1 addition & 0 deletions Hazard.c4d/Arena.c4d/Bonuses.c4d/AmmoExpert.c4d/DescUS.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Huh, seems like your ammoclips are as twice as big now!
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 2 additions & 0 deletions Hazard.c4d/Arena.c4d/Bonuses.c4d/AmmoExpert.c4d/Names.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
DE:Ammoexperte
US:AmmoExpert
34 changes: 34 additions & 0 deletions Hazard.c4d/Arena.c4d/Bonuses.c4d/AmmoExpert.c4d/Script.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
/*-- AmmoExpert --*/

#strict

public func IsBonus() { return(true); }

public func Color() { return(RGB(30,70,255)); }

public func Activate(object obj) {
if(!AddEffect("AmmoExpBonus",obj,190,2,obj))
return();
Sound("AmmoExpert", 1, 0,0, GetOwner(obj)+1);
return(true);
}

global func FxAmmoExpBonusTimer(object pTarget, int iEffectNumber, int iEffectTime) {
CreateParticle("PSpark",Sin(iEffectTime*3,10),Cos(iEffectTime*3,10),0,0,30,RGB(30,130-Sin(iEffectTime*2,100),250),pTarget);
CreateParticle("PSpark",Sin(iEffectTime*3+180,10),Cos(iEffectTime*3+180,10),0,0,30,RGB(30,130-Sin(iEffectTime*2,100),250),pTarget,true);
if(iEffectTime > BONUS_Duration/1+BONUS_Duration)
return(-1);
}

global func FxAmmoExpBonusEffect(string szNewEffectName, object pTarget, int iEffectNumber, int iNewEffectNumber) {
if(szNewEffectName S= "AmmoExpBonus")
{
return(-1);
}
}

global func FxAmmoExpBonusFMData(object pTarget, int iEffectNumber, int iData, value) {
if(iData == FM_AmmoRate) return(value*2);
return(value);
}

Binary file not shown.
10 changes: 10 additions & 0 deletions Hazard.c4d/Arena.c4d/Bonuses.c4d/AmmoPack.c4d/DefCore.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
[DefCore]
id=AMPB
Version=4,9,8,2
Name=AmmoPack
Category=C4D_StaticBack
Width=15
Height=15
Offset=-7,-7
Components=AMPB=1
Picture=0,0,15,15
1 change: 1 addition & 0 deletions Hazard.c4d/Arena.c4d/Bonuses.c4d/AmmoPack.c4d/DescDE.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Ein riesen Haufen Munition!
1 change: 1 addition & 0 deletions Hazard.c4d/Arena.c4d/Bonuses.c4d/AmmoPack.c4d/DescUS.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
A big bunch of Ammo!
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 2 additions & 0 deletions Hazard.c4d/Arena.c4d/Bonuses.c4d/AmmoPack.c4d/Names.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
DE:Munition
US:Ammo
26 changes: 26 additions & 0 deletions Hazard.c4d/Arena.c4d/Bonuses.c4d/AmmoPack.c4d/Script.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
/*-- AmmoPack --*/

#strict

public func IsBonus() { return(true); }

func Color() { return(RGB(90,90,90)); }

func Activate(object obj) {
var i,id;
while(id = GetDefinition(i++))
DoAmmo(id,DefinitionCall(id,"MaxAmmo")/5,obj);

AddEffect("AmmoBonus",obj,1,5);
Sound("AmmoPack", 1, 0,0, GetOwner(obj)+1);

return(true);
}

global func FxAmmoBonusTimer(object pTarget, int iEffectNumber, int iEffectTime) {
CreateParticle("XSpark",GetX(pTarget)+Sin(EffectVar(0,pTarget,iEffectNumber)*60,12),GetY(pTarget)+Cos(EffectVar(0,pTarget,iEffectNumber)*60,12),0,0,40,RGB(90,90,90),pTarget);
if(++EffectVar(0,pTarget,iEffectNumber) > 6) {
CastParticles("XSpark",5,15,GetX(pTarget),GetY(pTarget),40,60,RGB(90,90,90),0,pTarget);
return(-1);
}
}
Binary file not shown.
10 changes: 10 additions & 0 deletions Hazard.c4d/Arena.c4d/Bonuses.c4d/Berserker.c4d/DefCore.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
[DefCore]
id=BSKB
Version=4,9,8,2
Name=Berserker
Category=C4D_StaticBack
Width=10
Height=10
Offset=-5,-5
Components=BESB=1
Picture=0,0,10,10
1 change: 1 addition & 0 deletions Hazard.c4d/Arena.c4d/Bonuses.c4d/Berserker.c4d/DescDE.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Du mutierst zum Berserker, und machst doppelten Schaden!
1 change: 1 addition & 0 deletions Hazard.c4d/Arena.c4d/Bonuses.c4d/Berserker.c4d/DescUS.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
You mutate into a berserker and deal double damage!
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 2 additions & 0 deletions Hazard.c4d/Arena.c4d/Bonuses.c4d/Berserker.c4d/Names.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
DE:Berserker
US:Berserker
48 changes: 48 additions & 0 deletions Hazard.c4d/Arena.c4d/Bonuses.c4d/Berserker.c4d/Script.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
/*-- Berserker --*/

#strict

//Dauer: die halbe * die ganze Antwort!
static const BONUS_Duration = 882;

public func IsBonus() { return(true); }

public func Color() { return(RGB(255,100,0)); }

public func Activate(object obj) {
if(!AddEffect("BerserkerBonus",obj,190,5,obj))
return();
Sound("Berserk", 1, 0,0, GetOwner(obj)+1);
return(true);
}

global func FxBerserkerBonusStart(object pTarget, int iEffectNumber, int tmp) {
if(tmp)
return();
SetClrModulation(RGB(255,50,0),pTarget);
}

global func FxBerserkerBonusTimer(object pTarget, int iEffectNumber, int iEffectTime) {
CreateParticle("PxSpark",RandomX(-3,3),-8,0,-10,35,RGB(250,50+Random(100),Random(20)),pTarget,1);
if(iEffectTime > BONUS_Duration)
return(-1);
}

global func FxBerserkerBonusStop(object pTarget, int iEffectNumber, int tmp) {
if(tmp)
return();
SetClrModulation(RGB(255,255,255),pTarget);
}

global func FxBerserkerBonusEffect(string szNewEffectName, object pTarget, int iEffectNumber, int iNewEffectNumber) {
if(szNewEffectName S= "BerserkerBonus")
{
return(-1);
}
}

global func FxBerserkerBonusFMData(object pTarget, int iEffectNumber, int iData, value) {
//Damage*2!
if(iData == FM_Damage) return(value*2);
return(value);
}
10 changes: 10 additions & 0 deletions Hazard.c4d/Arena.c4d/Bonuses.c4d/Haste.c4d/DefCore.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
[DefCore]
id=HSTB
Version=4,9,8,2
Name=Haste
Category=C4D_StaticBack
Width=10
Height=10
Offset=-5,-5
Components=BESB=1
Picture=0,0,10,10
1 change: 1 addition & 0 deletions Hazard.c4d/Arena.c4d/Bonuses.c4d/Haste.c4d/DescDE.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Speeeeeeeeed.
1 change: 1 addition & 0 deletions Hazard.c4d/Arena.c4d/Bonuses.c4d/Haste.c4d/DescUS.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Speeeeeeeeed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 2 additions & 0 deletions Hazard.c4d/Arena.c4d/Bonuses.c4d/Haste.c4d/Names.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
DE:Hast
US:Haste
Loading