Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*--- Originaler Conkit ---*/
- protected func CreateConstructionSite(idType)
- {
- // Nur wenn der Clonk steht und sich im Freien befindet
- if (GetAction(Contained()) ne "Walk") return(0);
- if (Contained(Contained())) return(0);
- // Pruefen, ob das Gebaeude hier gebaut werden kann
- if (idType->~RejectConstruction(0, 10, Contained()) ) return(0);
- // Besitzer setzen für CreateConstruction
- SetOwner(GetOwner(Contained()));
- // Baustelle erschaffen
- var pSite;
- if (!(pSite = CreateConstruction(idType, 0, 10, GetOwner(Contained()), 1, 1,1))) return(0);
- // Meldung
- Message("$TxtConstructions$", Contained(), GetName(pSite));
- // Bausatz verbrauchen
- RemoveObject();
- return(1);
- }
- /*--- Neuer Conkit ---*/
- protected func CreateConstructionSite(idType)
- {
- // Nur wenn der Clonk steht und sich im Freien befindet
- if (GetAction(Contained()) ne "Walk") return(0);
- if (Contained(Contained())) return(0);
- // Pruefen, ob das Gebaeude hier gebaut werden kann
- if (idType->~RejectConstruction(0, 10, Contained()) ) return(0);
- // Besitzer setzen für CreateConstruction
- SetOwner(GetOwner(Contained()));
- // Baustelle erschaffen
- var pSite;
- if (!(pSite = CreateConstruction(idType, 0, 10, GetOwner(Contained()), 1, 1,1))) return(0);
- if (!fConkit[GetPlayerTeam(GetOwner())])
- if (AddEffect("FirstBuilding", pSite, 200, 20, 0, CNKT))
- fConkit[GetPlayerTeam(GetOwner())]=true;
- // Meldung
- Message("$TxtConstructions$", Contained(), GetName(pSite));
- // Bausatz verbrauchen
- RemoveObject();
- return(1);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement