Homer
17th April 2006, 19:02
Since it released for Uscript and LScript , here its for c++
its usefuller to use with serverfire i guess but i wont release my serverfirefunction here since when u use serverfire wrong in Native it loops ****ing high ( i know cause i did wrong at beginning lol)
so i release with simple fire function
int timerthing;
int Fireit(void)
{
if (timething >= 3) // how lower the number u choose here how faster it repeat shooting the next bullet
{
UFunction* pFire = MPC->FindFunction(FName(TEXT("Fire")),FNAME_Find);
if (pFire != NULL)
{
APawn_execFire_Parms Parms;
Parms.F = 0;
MPC->ProcessEvent(pFire, &Parms, NULL);
}
timething = 0;
}
return timething +=1;
}
credits : poland and killa
its usefuller to use with serverfire i guess but i wont release my serverfirefunction here since when u use serverfire wrong in Native it loops ****ing high ( i know cause i did wrong at beginning lol)
so i release with simple fire function
int timerthing;
int Fireit(void)
{
if (timething >= 3) // how lower the number u choose here how faster it repeat shooting the next bullet
{
UFunction* pFire = MPC->FindFunction(FName(TEXT("Fire")),FNAME_Find);
if (pFire != NULL)
{
APawn_execFire_Parms Parms;
Parms.F = 0;
MPC->ProcessEvent(pFire, &Parms, NULL);
}
timething = 0;
}
return timething +=1;
}
credits : poland and killa