Lets not forget repairing caps while the battle is in progress. I see this tool as better used on capital ships in battle. As for fighters your right vape cant use it till the battle is over.
PostPosted: Sat Aug 18, 2007 3:05 pm Post subject: Set Base-Damage Reply with quote
Ok, for my miningfactories I had the request to give them a chance to repair by some equipment. Here is some code to set the damage of a base. I guess, it can be used for other objects, too.
You'll have to give the nickname of the base and the percentage of the damage. I use it in the event-mode.
Most copied from the code to set the damage of ships:
Code:
///////////////////////////////////////////////////////////////////////////////////////////////////////////////
// TaknTar
// it works in a range of 0.001 to 1
// with the dead of the player comes a message killed by admin.
void CCmds::CmdSetDamageBase(wstring wscBaseNickname, wstring wscdamage)
{
RIGHT_CHECK(RIGHT_BEAM);
float d = ToFloat(wscdamage);
if ( d > 1 ) d = 1;
if ( d < 0 ) d = 0;
if(HKSUCCESS(HkSetDamageBase(wscBaseNickname, d )))
Print(L"OK\n");
else
PrintError();
}
and
Code:
///////////////////////////////////////////////////////////////////////////////////////////////////////////////
// TaknTar 08/2007
// addon to vary the damage
// DamageBase = % of the maxhealth of the base 0-100% = 0 - 1
HK_ERROR HkSetDamageBase(wstring wscBaseNickname, float DamageBase )
{
Oh, and writing this, we can use this not only to repair a station...
Perhaps its useful for you Smile
Back to top
View user's profile Send private message MSN Messenger
w0dk4
Joined: 06 Nov 2006
Posts: 113
PostPosted: Sat Aug 18, 2007 5:48 pm Post subject: Reply with quote
Are you sure this works?
My experience with this function used on ships was, that it does not really work, except when you set the percentage to 0 which kills the ship..
/woha, you are right it works on bases Smile
Im not sure about ships though, I have to retest that!
w0dk4
Joined: 06 Nov 2006
Posts: 113
PostPosted: Sat Aug 18, 2007 6:10 pm Post subject: Reply with quote
It also works on ships. I was totally wrong Smile Thats great news Surprised)
Yep, it's been ever known as a FLHook hack. If done right we might get those things here on Disco as well and Repair ships would be a tick more useful.
Hm, sounds interesting. Yet another thing "to be looked into" by the developers. If this could be implemented it would be fantastic, but I think that there is room for abuse of this (example: A gunboat and a small fleet of repair ships attack an enemy group. At first the targets concentrate fire on the big ship, the gunboat, but every time they get his shields down he gets swarmed by repair blasts. So when they attack the repair ships, they just repair each other.) I'd suggest, in order to avoid something like that, to make the repair turrets take a lot of energy so that they have to be used sparingly.
THEY TOLD ME I COULD BE ANYTHING SO I BECAME A SIGNATURE PLS HLP
Unless you make the gun range only 20 distance, repairing 200 hull repair per shot 2 shots per second. and a lvl 10 fighter shield.
Now if a ship wants repair, it sits close by for a repair shot, meaning he is a sitting duck for people attacking it, or ipt does tactical passed to be repaired, meaning it will not get a free ride. Make the gun shot animation look like the miners welders you see out in Tau 31.
Primarily for RP not for a true advantage. so they can help ships repair primarily when they are not being hammered.
pipsqueak, because of lag, a range of 20 isnt all too smart as that gives little room for error in the case of ramming.
A range of say 250 (on average 1/3 to 1/2 that of normal weapon) would be better.
Also, there wouldnt be much sense in having different classed repair guns for Caps / Fighters if they are energy based, as the one for Caps would be used to repair fighters instantly. If they are made Ammo weapons, using Bots / Bats as ammo, then sure.
Cap Repair Gun = 10000 hull, 0.5-1.0 refire, 500 range
Fighter Repair Gun = 2500 hull, 1.0-2.0 refire, 250 range
Also, just a note to Scornstar, Class 6 Turrets could also be used by any ship that can use Class 7 or lower turrets such as Luxury Liners. Best bet would be make a Repair Guns a special class weapon that only Repair Ships have access to. (This can be done through weap_equip.ini and shiparch.ini)