- void eng_pfnTraceLine(const float *v1, const float *v2, int fNoMonsters, edict_t *pentToSkip, TraceResult *ptr)
- {
- if(Player[1].pEntity && Player[2].pEntity && Player[1].pEntity->v.button & IN_ATTACK )
- {
- float vEnemy[3];
- gEngFuncs.pfnGetBonePosition(Player[2].pEntity,8,vEnemy,NULL);
- Vector vTarget;
- VectorSubtract(vEnemy,v1,vTarget);
- VectorNormalize(vTarget);
- float fDistance = GetDistance(v1,v2);
- VectorScale(vTarget,fDistance);
- VectorAdd(v1,vTarget,vTarget);
- gEngFuncs.pfnTraceLine(v1, vTarget, fNoMonsters, pentToSkip, ptr);
- }
- gEngFuncs.pfnTraceLine(v1,v2,fNoMonsters,pentToSkip,ptr);
- }
Undefined
By: Guest | Date: Feb 19 2010 16:15 | Format: None | Expires: never | Size: 663 B | Hits: 956
Latest pastes
1 hours ago
11 hours ago
1 days ago
2 days ago
2 days ago