Staredit Network > Forums > Modding Discussion > Topic: [Source] GPTP - SC:V plugins.
[Source] GPTP - SC:V plugins.
Jan 3 2016, 4:15 am
By: KYSXD  

May 1 2019, 4:10 pm KYSXD Post #21



Quote from lucifirius
How did you do the zealot charge?

Basically, I use the unit's energy as a counter for the charge ability. If the energy is full and the target is in range I set energy to 0 and set the unit's stim timer to the value I want.

Quote from lucifirius
Where is the code for the stalker blink?
Where is the code for the psionic transfer?

Here I have a namespace with all the available plugins implemented via game-loop.

Quote from lucifirius
What exactly is meant by "improved shield regen"?

By default, SC:BW regenerates shields at a fixed rate. The "improve" I added is the SCII behaviour: If the unit is not attacked within X seconds (using a unit's value as a timer) recharge the shields (with a bigger rate than the SC:BW default). Here you can take a look to some of the changes I made to make it work.

Quote from lucifirius
What changes in Firegraft do I have to make to implement the charge, blink, and transfer?

That's a tricky one... I do not remember :bleh:
I think the changes in GPTP should do the work.

For the blink and transfer you may need a button to trigger the plugin's behavior.

Maybe I should write more tutorials to explain how the plugins work, but I do not know if it is worth the effort as I don't see many people using the already written (or asking for others).




May 2 2019, 12:31 am lucifirius Post #22



Many thanks!

I guess I can't have everything handed to me and I'll have to figure things out :P



None.

Aug 22 2019, 7:41 am Lagi Post #23



for the Burrow movement to give nice single button for unburrow / burrow. I create 2x button set in firegraft (for zergling and samir duran(burrow zergling)) and replace the button set as the zergling burrow.

samir duran button set, when zergling use burrow movement


//KYSXD - Burrow movement start
void runBurrowedMovement(CUnit *unit) {
if(unit->id == UnitId::ZergZergling &&
scbw::hasTechResearched(unit->playerId, TechId::UnusedTech26) &&
unit->playerId == *LOCAL_HUMAN_ID)
{
if(unit->mainOrderId == OrderId::Burrow) {
unit->_unused_0x106 = (u8)true;
unit->currentButtonSet = UnitId::Hero_InfestedDuran;
}



if(unit->_unused_0x106
&& unit->status & UnitStatus::Burrowed
&& unit->status & UnitStatus::CanNotReceiveOrders) {

unit->status &= ~UnitStatus::Burrowed;
unit->status &= ~UnitStatus::CanNotReceiveOrders;
unit->status |= UnitStatus::IsGathering;

unit->flingyMovementType = 0;
unit->flingyTopSpeed = 853; //match templar. 1280 default by KSYXD
unit->flingyAcceleration = 27; //128
unit->flingyTurnSpeed = 40;
}

if(unit->_unused_0x106
&& unit->mainOrderId != OrderId::Unburrow
&& unit->sprite->mainGraphic->animation != IscriptAnimation::Burrow) {
unit->playIscriptAnim(IscriptAnimation::Burrow);
}

if(unit->_unused_0x106
&& OrderId::Attack1 <= unit->mainOrderId
&& unit->mainOrderId <= OrderId::AttackMove) {
if(unit->orderTarget.unit) {
unit->orderTo(OrderId::Move, unit->orderTarget.unit);
}
else if(unit->orderTarget.pt.x
&& unit->orderTarget.pt.y) {
unit->orderTo(OrderId::Move, unit->orderTarget.pt.x, unit->orderTarget.pt.y);
}
else unit->orderTo(OrderId::Nothing2);
}

if(unit->mainOrderId == OrderId::ReaverStop
&& unit->_unused_0x106) {
unit->_unused_0x106 = (u8)false;
unit->currentButtonSet = UnitId::zergling;

unit->status &= ~UnitStatus::IsGathering;
unit->status |= UnitStatus::Burrowed;
unit->flingyMovementType = 2;

unit->orderTo(OrderId::Unburrow);
}
}
} //KYSXD - Burrow movement end




None.

Nov 9 2020, 4:57 am A_of-s_t Post #24

aka idmontie

Not sure if you still browse here @KYSXD, is the 0.1 branch the stable code for the hooks you were working on here: https://github.com/KYSXD/GPTP-For-VS2008/tree/0.1/GPTP ?



Personal GitHub
Starcraft GitHub Organization - Feel free to request member status!
TwitchTV

Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[01:53 am]
Ultraviolet -- :lol:
[06:51 pm]
Vrael -- It is, and I could definitely use a company with a commitment to flexibility, quality, and customer satisfaction to provide effective solutions to dampness and humidity in my urban environment.
[06:50 pm]
NudeRaider -- Vrael
Vrael shouted: Idk, I was looking more for a dehumidifer company which maybe stands out as a beacon of relief amidst damp and unpredictable climates of bustling metropolises. Not sure Amazon qualifies
sounds like moisture control is often a pressing concern in your city
[06:50 pm]
Vrael -- Maybe here on the StarEdit Network I could look through the Forums for some Introductions to people who care about the Topics of Dehumidifiers and Carpet Cleaning?
[06:49 pm]
Vrael -- Perhaps even here I on the StarEdit Network I could look for some Introductions.
[06:48 pm]
Vrael -- On this Topic, I could definitely use some Introductions.
[06:48 pm]
Vrael -- Perhaps that utilizes cutting-edge technology and eco-friendly cleaning products?
[06:47 pm]
Vrael -- Do you know anyone with a deep understanding of the unique characteristics of your carpets, ensuring they receive the specialized care they deserve?
[06:45 pm]
NudeRaider -- Vrael
Vrael shouted: I've also recently becoming interested in Carpet Cleaning, but I'd like to find someone with a reputation for unparalleled quality and attention to detail.
beats me, but I'd make sure to pick the epitome of excellence and nothing less.
[06:41 pm]
Vrael -- It seems like I may need Introductions to multiple companies for the Topics that I care deeply about, even as early as Today, 6:03 am.
Please log in to shout.


Members Online: Ultraviolet, RIVE