some resources added; musket fixes

Charles Spurrill 2009-12-22 02:55:20 -08:00
parent 945cd804fc
commit 53aaa0da16
54 changed files with 201 additions and 77 deletions

View File

@ -0,0 +1,19 @@
[DefCore]
id=BPDR
Version=4,9,10,10
Category=C4D_Material|C4D_Object
MaxUserSelect=50
Width=8
Height=8
Offset=-4,-4
Picture=8,0,16,16
Vertices=2
VertexX=0,0
VertexY=3,-3
VertexFriction=50,50
Components=SLFR=1;COAL=1;
Value=10
Mass=12
Rotate=1
ContactIncinerate=1
BlastIncinerate=5

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.0 KiB

View File

@ -0,0 +1,16 @@
/*-- Black Powder --*/
#strict 2
protected func Incineration()
{
Schedule("Explode(20)", 90);
}
func IsAlchemyProduct() { return 1; }
func AlchemyProcessTime() { return 100; }
func Definition(def) {
SetProperty("Collectible", 1, def);
SetProperty("Name", "$Name$", def);
}

View File

@ -0,0 +1 @@
Name=Schießpulver

View File

@ -0,0 +1 @@
Name=Black Powder

View File

@ -1,20 +0,0 @@
[DefCore]
id=GOLD
Version=4,10,0,0
Category=C4D_Object|C4D_SelectMaterial
MaxUserSelect=100
Width=6
Height=6
Offset=-3,-3
Vertices=3
VertexX=0,1,-1
VertexY=1,-1,-1
VertexFriction=40,40,40
Value=25
Mass=12
Components=GOLD=1
Rebuy=0
Collectible=1
Rotate=1
StretchGrowth=1
Oversize=1

View File

@ -0,0 +1,19 @@
[DefCore]
id=COAL
Version=4,9,10,10
Category=C4D_Material|C4D_Object
MaxUserSelect=50
Width=8
Height=8
Offset=-4,-4
Picture=0,0,8,8
Vertices=2
VertexX=0,0
VertexY=3,-3
VertexFriction=75,75
Components=WOOD=2;
Value=4
Mass=9
Rotate=1
ContactIncinerate=1
BlastIncinerate=5

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.8 KiB

View File

@ -0,0 +1,6 @@
#strict 2
func Definition(def) {
SetProperty("Collectible", 1, def);
SetProperty("Name", "Coal", def);
}

View File

@ -0,0 +1,19 @@
[DefCore]
id=GOLD
Version=4,10,0,0
Category=C4D_Object|C4D_SelectMaterial
MaxUserSelect=100
Width=6
Height=6
Offset=-3,-3
Vertices=3
VertexX=0,1,-1
VertexY=1,-1,-1
VertexFriction=40,40,40
Value=25
Mass=12
Components=GOLD=1
Rebuy=0
Rotate=1
StretchGrowth=1
Oversize=1

View File

Before

Width:  |  Height:  |  Size: 4.9 KiB

After

Width:  |  Height:  |  Size: 4.9 KiB

View File

@ -11,3 +11,6 @@ protected func Hit()
func Definition(def) {
SetProperty("Name", "$Name$", def);
}
func Definition(def) {
SetProperty("Collectible", 1, def);
}

View File

@ -0,0 +1,17 @@
[DefCore]
id=ORE1
Version=4,9,10,10
Category=C4D_Material|C4D_Object
MaxUserSelect=50
Width=8
Height=8
Offset=-4,-4
Picture=0,0,8,8
Vertices=2
VertexX=0,0
VertexY=3,-3
VertexFriction=80,80
Components=ROCK=3;
Value=5
Mass=9
Rotate=1

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.5 KiB

View File

@ -0,0 +1,6 @@
#strict 2
func Definition(def) {
SetProperty("Collectible", 1, def);
SetProperty("Name", "$Name$", def);
}

View File

@ -0,0 +1 @@
Name=Eisenerz

View File

@ -0,0 +1 @@
Name=Iron Ore

View File

@ -0,0 +1,17 @@
[DefCore]
id=ROCK
Version=4,10,0,0
Category=C4D_Object|C4D_SelectMaterial|C4D_SelectHomebase|C4D_SelectInEarth
MaxUserSelect=10
Width=6
Height=6
Offset=-3,-3
Vertices=1
VertexY=1
VertexFriction=20
Value=1
Mass=10
Components=IROC=3
Rebuy=1
Projectile=1

View File

Before

Width:  |  Height:  |  Size: 6.1 KiB

After

Width:  |  Height:  |  Size: 6.1 KiB

View File

@ -0,0 +1,17 @@
[DefCore]
id=SPHR
Version=4,9,10,10
Category=C4D_Material|C4D_Object
MaxUserSelect=50
Width=8
Height=8
Offset=-4,-4
Picture=0,0,8,8
Vertices=2
VertexX=0,0
VertexY=3,-3
VertexFriction=40,40
Components=SPHR=1;
Value=5
Mass=10
Rotate=1

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.4 KiB

View File

@ -0,0 +1,6 @@
#strict 2
func Definition(def) {
SetProperty("Collectible", 1, def);
SetProperty("Name", "$Name$", def);
}

View File

@ -0,0 +1 @@
Name=Schwefel

View File

@ -0,0 +1 @@
Name=Sulfur

View File

@ -0,0 +1,23 @@
[DefCore]
id=WOOD
Version=4,10,0,0
Category=C4D_Object|C4D_SelectMaterial|C4D_SelectHomebase
MaxUserSelect=25
Width=12
Height=12
Offset=-7,-6
Vertices=3
VertexX=4,-5
VertexY=-1,2
VertexCNAT=1,2
VertexFriction=30,30
Value=2
Mass=6
Components=WOOD=1
ContactIncinerate=1
BlastIncinerate=5
Rebuy=1
Rotate=1
Float=1
StretchGrowth=1

View File

Before

Width:  |  Height:  |  Size: 3.2 KiB

After

Width:  |  Height:  |  Size: 3.2 KiB

View File

@ -17,5 +17,6 @@ public func IsFuel() { return 1; }
public func GetFuelAmount() { return 30; }
func Definition(def) {
SetProperty("Collectible", 1, def);
SetProperty("Name", "$Name$", def);
}

View File

@ -12,9 +12,9 @@ VertexY=4,4,-4
VertexCNAT=9,10,4
VertexFriction=40,40,50
Picture=6,0,21,21
Value=10
Value=25
Mass=10
Collectible=1
Components=METL=1;
Components=METL=1;BPDR=1;
Rebuy=1
Rotate=1

View File

@ -6,7 +6,7 @@ local iAmmo;
protected func Initialize()
{
iAmmo=5;
iAmmo=8;
}
public func TakeAmmo()

View File

@ -1 +1 @@
Name=Musket Ball
Name=Kugelbeutel

View File

@ -1 +1 @@
Name=Musket Ball
Name=Bullet Pouch

View File

@ -3,8 +3,9 @@ id=FLSH
Version=4,9,10,10
Width=16
Height=16
Offset=-8,-8
Offset=-8,-16
Vertices=1
VertexY=1
VertexX=0
VertexY=0
Mass=1
Rotate=1

View File

@ -21,6 +21,8 @@ protected func ControlUse(object clonk, ix, iy)
protected func ControlUseStop(object pClonk, ix, iy)
{
if(CheckCanUse(pClonk)==1) {
// Reload from Empty
if(MagazineType() && Ammo==0) {
while(MagazineType()->AmmoCount()!=0 && Ammo<MagazineSize())
@ -37,20 +39,27 @@ protected func ControlUseStop(object pClonk, ix, iy)
// Fire
if(Ammo>=1) {
FindContents(ProjectileType())->LaunchProjectile(Angle(0,0,ix,iy)+RandomX(-(Accuracy()), Accuracy()), BarrelLength(), MuzzleVelocity());
// MuzzleFlash(pClonk,ix,iy); //Disabled due to action bug. Re-enable when working.
Sound("Blast3");
Message("Bang!", pClonk);
FireWeapon(pClonk, ix, iy);
Ammo=Ammo-1;
if(Ammo==0) IsLoaded=0;
return 1;
return 1; }
}
return 1;
}
private func MuzzleFlash(object pClonk, int iX, int iY)
public func CheckCanUse(object pClonk)
{
pClonk->CreateContents(FLSH)->LaunchProjectile(Angle(0,0,iX,iY), BarrelLength());
if(pClonk->GetOCF() & OCF_NotContained) return 1;
}
private func FireWeapon(object pClonk, int iX, int iY)
{
FindContents(ProjectileType())->LaunchProjectile(Angle(0,0,iX,iY)+RandomX(-(Accuracy()), Accuracy()), BarrelLength(), MuzzleVelocity());
Sound("Blast3");
Message("Bang!", pClonk);
//Muzzle Flash
pClonk->CreateContents(FLSH)->LaunchProjectile(Angle(0,0,iX,iY), BarrelLength(),0,0,13);
}
public func IsToolProduct() { return 1; }

View File

@ -1 +1 @@
Name=Musket
Name=Muskete

View File

@ -1,24 +0,0 @@
[DefCore]
id=WOOD
Version=4,10,0,0
Category=C4D_Object|C4D_SelectMaterial|C4D_SelectHomebase
MaxUserSelect=25
Width=12
Height=12
Offset=-7,-6
Vertices=3
VertexX=4,-5
VertexY=-1,2
VertexCNAT=1,2
VertexFriction=30,30
Value=2
Mass=6
Components=WOOD=1
ContactIncinerate=1
BlastIncinerate=5
Rebuy=1
Collectible=1
Rotate=1
Float=1
StretchGrowth=1

View File

@ -1,17 +0,0 @@
[DefCore]
id=ROCK
Version=4,10,0,0
Category=C4D_Object|C4D_SelectMaterial|C4D_SelectHomebase|C4D_SelectInEarth
MaxUserSelect=10
Width=6
Height=6
Offset=-3,-3
Vertices=1
VertexY=1
VertexFriction=20
Value=1
Mass=10
Components=IROC=3
Rebuy=1
Projectile=1