(08-03-2014, 12:54)Cation Wrote: [ -> ]I have managed to get damage from model to player but player won't die even if he's health is negative...
And oddly, blast shield appears to be on when I add those codes.
@Yamato, I don't know how that your mod works but eInflictor gives damage, not that iDamage...
eInflictor: damage amount
attacker: attacker
victim: vDir
iDamage: vPoint
iDFlags: damage type which might be correct
vPoint: model's name where you hit
sHitloc: weapon which is used when hit
Ps. Is it possible to block some console commands with mod?
Weird, I always got damage done with that iDamage and was working well. Blast shield used to appear when I shot them with weapons with the ones I create "RadiusDamages". The hitmarkers will appear if you hit the model/hitbox. And yes, in theory you could be able to make bigger the hitbox (I always used the carepackage collision as hitbox for zombies since it fits well in size). Maybe the Demolition bomb collision is the best (it works on all maps), you might need to obtain it by seeing a d3dbsp.ents file. This is how the game makes solid the carepackage and it can applies to other collisions as well.
Code:
level.airDropCrates = getEntArray( "care_package", "targetname" );
level.airDropCrateCollision = getEnt( level.airDropCrates[0].target, "targetname" );
dropCrate CloneBrushmodelToScriptmodel( level.airDropCrateCollision );
I think you could get the bomb one like this, it could be "exploder" the collisions targetname.
Code:
level.BiggerCollision = getEnt( "exploder", "targetname" );
Make a function that solves the negative hp (this is a bad one):
Code:
if( self.health <= 0 )
self suicide(); //put proper death log here
d3dbsp.ents file extracting tutorial:
http://www.itsmods.com/forum/Thread-Tuto...-file.html
_________________________________
EDIT: I am getting confused as shit lol, this is carepackage info
"target" "pf394_auto1"
"targetname" "care_package"
Bomb one is this one:
"target" "pf43_auto2"
"targetname" "pf43_auto1"
So by copying the carepackage code and replacing:
Code:
level.newcrates = getEntArray( "pf43_auto1", "targetname" );
level.newcollision = getEnt( level.newcrates[0].target, "targetname" );
dropCrate CloneBrushmodelToScriptmodel( level.newcollision );
Cant test if this works because I dont have the game.