mirror of
https://github.com/exogen/t2-mapper.git
synced 2026-07-11 22:44:47 +00:00
Initial commit
This commit is contained in:
parent
2211ed7650
commit
ebb3dc9cdd
10121 changed files with 801 additions and 4 deletions
69
docs/base/@vl2/scripts.vl2/scripts/weapons/flashGrenade.cs
Normal file
69
docs/base/@vl2/scripts.vl2/scripts/weapons/flashGrenade.cs
Normal file
|
|
@ -0,0 +1,69 @@
|
|||
// grenade (thrown by hand) script
|
||||
// ------------------------------------------------------------------------
|
||||
datablock EffectProfile(FlashGrenadeExplosionEffect)
|
||||
{
|
||||
effectname = "explosions/grenade_flash_explode";
|
||||
minDistance = 10;
|
||||
maxDistance = 30;
|
||||
};
|
||||
|
||||
datablock AudioProfile(FlashGrenadeExplosionSound)
|
||||
{
|
||||
filename = "fx/explosions/grenade_flash_explode.wav";
|
||||
description = AudioExplosion3d;
|
||||
preload = true;
|
||||
effect = FlashGrenadeExplosionEffect;
|
||||
};
|
||||
|
||||
datablock ExplosionData(FlashGrenadeExplosion)
|
||||
{
|
||||
explosionShape = "disc_explosion.dts";
|
||||
soundProfile = FlashGrenadeExplosionSound;
|
||||
|
||||
faceViewer = true;
|
||||
};
|
||||
|
||||
datablock ItemData(FlashGrenadeThrown)
|
||||
{
|
||||
shapeFile = "grenade.dts";
|
||||
mass = 0.7;
|
||||
elasticity = 0.2;
|
||||
friction = 1;
|
||||
pickupRadius = 2;
|
||||
maxDamage = 0.4;
|
||||
explosion = FlashGrenadeExplosion;
|
||||
indirectDamage = 0.5;
|
||||
damageRadius = 10.0;
|
||||
radiusDamageType = $DamageType::Grenade;
|
||||
kickBackStrength = 1000;
|
||||
|
||||
computeCRC = true;
|
||||
|
||||
maxWhiteout = 1.2;
|
||||
};
|
||||
|
||||
datablock ItemData(FlashGrenade)
|
||||
{
|
||||
className = HandInventory;
|
||||
catagory = "Handheld";
|
||||
shapeFile = "grenade.dts";
|
||||
mass = 0.7;
|
||||
elasticity = 0.2;
|
||||
friction = 1;
|
||||
pickupRadius = 2;
|
||||
thrownItem = FlashGrenadeThrown;
|
||||
pickUpName = "some flash grenades";
|
||||
isGrenade = true;
|
||||
|
||||
computeCRC = true;
|
||||
|
||||
};
|
||||
|
||||
//--------------------------------------------------------------------------
|
||||
// Functions:
|
||||
//--------------------------------------------------------------------------
|
||||
function FlashGrenadeThrown::onCollision( %data, %obj, %col )
|
||||
{
|
||||
// Do nothing...
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue