| Blockland Forums > Suggestions & Requests |
| Super Smash Brothers type damage system |
| << < (2/6) > >> |
| hodototman:
--- Quote from: Port on September 15, 2013, 09:48:20 AM ---More than extremely possible. --- End quote --- --- Quote from: Electrk on September 15, 2013, 11:32:49 AM ---Impossible --- End quote --- rap battle initiate |
| Headcrab Zombie:
--- Quote from: hodototman on September 15, 2013, 12:15:10 PM ---rap battle initiate --- End quote --- Someone who knows what he's talking about vs someone who has no clue what he's talking about. There is no battle here |
| Port:
$MaxSSBVelocityScale = 9; package SSBDamagePackage { function ShapeBase::addVelocity(%this, %velocity) { if (%this.usesSSBDamage()) { %velocity = vectorScale(%velocity, %this.getSSBVelocityScale()); } Parent::addVelocity(%this, %velocity); } function ShapeBase::applyImpulse(%this, %origin, %velocity) { if (%this.usesSSBDamage()) { %velocity = vectorScale(%velocity, %this.getSSBVelocityScale()); } Parent::applyImpulse(%this, %origin, %velocity); } function ShapeBase::setDamageFlash(%this, %scalar) { if (!%this.usesSSBDamage()) { Parent::setDamageFlash(%this, %scalar); } } }; activatePackage("SSBDamagePackage"); function ShapeBase::usesSSBDamage(%this) { return 1; } function ShapeBase::getSSBVelocityScale(%this) { return 1 + (%this.getDamageLevel() / %this.getDataBlock().maxDamage) * $MaxSSBVelocityScale; } |
| Crystalwarrior:
--- Quote from: Port on September 15, 2013, 12:21:14 PM ---$MaxSSBVelocityScale = 9; package SSBDamagePackage { function ShapeBase::addVelocity(%this, %velocity) { if (%this.usesSSBDamage()) { %velocity = vectorScale(%velocity, %this.getSSBVelocityScale()); } Parent::addVelocity(%this, %velocity); } function ShapeBase::applyImpulse(%this, %origin, %velocity) { if (%this.usesSSBDamage()) { %velocity = vectorScale(%velocity, %this.getSSBVelocityScale()); } Parent::applyImpulse(%this, %origin, %velocity); } function ShapeBase::setDamageFlash(%this, %scalar) { if (!%this.usesSSBDamage()) { Parent::setDamageFlash(%this, %scalar); } } }; activatePackage("SSBDamagePackage"); function ShapeBase::usesSSBDamage(%this) { return 1; } function ShapeBase::getSSBVelocityScale(%this) { return 1 + (%this.getDamageLevel() / %this.getDataBlock().maxDamage) * $MaxSSBVelocityScale; } --- End quote --- --- Quote from: Headcrab Zombie on September 15, 2013, 12:21:03 PM ---There is no battle here --- End quote --- |
| Headcrab Zombie:
I think it would nice if you rewrote the damage system; like made it so you can't die from taking damage, you have to be knocked off the map into a kill event or something |
| Navigation |
| Message Index |
| Next page |
| Previous page |