AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Realism? (https://forums.alliedmods.net/showthread.php?t=51430)

blackops7799 02-17-2007 20:19

Realism?
 
Hey, how would I go about making a realism mod so when if a user is hit in the leg he will start walking slow, or if he gets hit in the arm there is a 25% chance of him dropping the gun he has out?

All i need to know id the function to find where the user has been hit...

FormulaZero 02-17-2007 20:21

Re: Realism?
 
Ah No!!! I was working on this and got half-way through, drats!
Maybe we could work together?
PM me for help.

blackops7799 02-17-2007 21:55

Re: Realism?
 
Its really easy to make, I could make it in 3 minutes... I just need the function...

FormulaZero 02-17-2007 22:00

Re: Realism?
 
I got realism for:
ArmShot
HeadShot
LegShot
StomachShot
RibShot
BackShot
KnifeHit
Grenade
FallDamage
FeetShot.

Wilson [29th ID] 02-18-2007 15:29

Re: Realism?
 
Code:

register_forward( FM_TraceLine, "hook_TraceLine")

public hook_TraceLine( const float *v1, const float *v2, int fNoMonsters, edict_t *pentToSkip, TraceResult *ptr )

It's in fakemeta_const.inc

To get the victim, use: new victim = get_tr( TR_pHit );

To get the hitbox, use: new hitplace = get_tr( TR_iHitgroup );

Here is one already made for DoD, but you'll have to code in stamina and proning yourself or skip it for CS.
http://www.dodplugins.net/forums/showthread.php?t=544

Voi 02-18-2007 18:52

Re: Realism?
 
1 Attachment(s)
Quote:

Originally Posted by FormulaZero (Post 441831)
I got realism for:
ArmShot
HeadShot
LegShot
StomachShot
RibShot
BackShot
KnifeHit
Grenade
FallDamage
FeetShot.

hey leave grenades for me, im making those right now :) (HE&FB), if it would change damage ratios to hit places i would be interested 2x :) just need to lower leg,arm damage and raise a bit headshot damage

pm me if u want to converse about compatibility and stuff, also integrate this:

XxAvalanchexX 02-18-2007 19:16

Re: Realism?
 
I'd hook the Damage event and use get_user_attacker.

Drak 02-19-2007 12:07

Re: Realism?
 
http://forums.alliedmods.net/showthr...&highlight=SQL

Voi 02-19-2007 12:20

Re: Realism?
 
i dont like the bandage part ;/


All times are GMT -4. The time now is 00:36.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.