Skip to content

Commit

Permalink
feat(natives/ped): update/fix ApplyPedBloodSpecific
Browse files Browse the repository at this point in the history
*Update arguments for ApplyPedBloodSpecific and fix the problem in #978
  • Loading branch information
spacevx committed Feb 1, 2024
1 parent a06f864 commit a14cca7
Showing 1 changed file with 15 additions and 11 deletions.
26 changes: 15 additions & 11 deletions PED/ApplyPedBloodSpecific.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,22 @@ aliases: ["0xEF0D582CBF2D9B0F"]

```c
// 0xEF0D582CBF2D9B0F 0xFC13CE80
void APPLY_PED_BLOOD_SPECIFIC(Ped ped, Any p1, float p2, float p3, float p4, float p5, Any p6, float p7, Any* p8);
void APPLY_PED_BLOOD_SPECIFIC(Ped ped, int component, float u, float v, float rotation, float scale, int forcedFrame, float preAge, cs_type(Any*) char* bloodName);
```
Applies blood damage to a ped with specific parameters for zone, UV offsets, rotation, scale, and initial aging.
## Parameters
* **ped**:
* **p1**:
* **p2**:
* **p3**:
* **p4**:
* **p5**:
* **p6**:
* **p7**:
* **p8**:
```
NativeDB Introduced: v323
```
## Parameters
**ped:** The Ped to which blood damage is applied.
**component:** Specific component or body part.
**u:** UV texture coordinates for placing the decal in the specified zone.
**v:** UV texture coordinates for placing the decal in the specified zone.
**rotation:** Angle in degrees for the rotation of the blood decal.
**scale:** Scale factor for the damage, ranging from 0.0 to 1.0.
**forcedFrame:** Allows a specific frame of damage to be chosen (-1 for random selection).
**preAge:** Number of seconds to pre-age the damage for an "old wound" effect (0.0 for fresh wound).
**bloodName:** Name of the blood type, matching an entry in peddamage.xml.

0 comments on commit a14cca7

Please sign in to comment.