21.06.2014, 12:08
(
Последний раз редактировалось R0; 20.04.2015 в 20:21.
)
Hey all,I have been told by alot of guys that the includes for this use arent working,so i am creating this simple filterscript to show the usage of OnPlayerWeaponShot and how to create this system.
Features:
*Unoccupied Vehicles Gets Damaged when you shoot at them.
*Vehicles Which has drivers,Lose Normal Damage,not the one that you set.
How to Add More guns:
Step 1:
Open the script,You will find few lines Like:
Step 2:
All you have to do is Just copying it/pasting it under it,And changing the Amount of the damage and The name of it
Step 3:
Go Under OnPlayerWeaponShot:
Add there:
Example:
I Want to add a damage for the Missle Launcher,All what i have to do is:
Then Under OnPlayerWeaponShot:
ScreenShots:
Vehicle Before Shooting:
Vehicle While Shooting:
Vehicle After Shooting:
Credits:
R0 - Scripting.
Download:
http://pastebin.com/BH22jQVp
ENJOY
Features:
*Unoccupied Vehicles Gets Damaged when you shoot at them.
*Vehicles Which has drivers,Lose Normal Damage,not the one that you set.
How to Add More guns:
Step 1:
Open the script,You will find few lines Like:
Код:
#define DEAGLE_DAMAGE 60
All you have to do is Just copying it/pasting it under it,And changing the Amount of the damage and The name of it
Step 3:
Go Under OnPlayerWeaponShot:
Add there:
pawn Код:
if(weaponid == weapon id here)
{
SetVehicleHealth(hitid, hp-WEAPONNAME_DAMAGE);
}
I Want to add a damage for the Missle Launcher,All what i have to do is:
pawn Код:
#define DEAGLE_DAMAGE 60
//Becomes
#define MISSLELAUNCHER_DAMAGE 700
pawn Код:
if(weaponid == 35)
{
SetVehicleHealth(hitid, hp-MISSLELAUNCHER_DAMAGE);
}
ScreenShots:
Vehicle Before Shooting:
Vehicle While Shooting:
Vehicle After Shooting:
Credits:
R0 - Scripting.
Download:
http://pastebin.com/BH22jQVp
ENJOY