Skip to content

Commit

Permalink
Also set initial velocity.
Browse files Browse the repository at this point in the history
  • Loading branch information
splewis committed Mar 6, 2018
1 parent a824116 commit def83e9
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions scripting/csutils.sp
Original file line number Diff line number Diff line change
Expand Up @@ -165,11 +165,9 @@ public bool HandleNativeRequestedNade(int entity) {
SetEntPropFloat(entity, Prop_Data, "m_flFriction", 0.2);
SetEntPropVector(entity, Prop_Data, "m_vecOrigin", origin);
SetEntPropVector(entity, Prop_Data, "m_vecVelocity", velocity);

// This would be nice to set, but causes crashes?
// SetEntPropVector(entity, Prop_Send, "m_vInitialVelocity", velocity);

SetEntPropVector(entity, Prop_Send, "m_vInitialVelocity", velocity);
SetEntPropVector(entity, Prop_Data, "m_vecAngVelocity", angVelocity);

if (type == GrenadeType_HE) {
SetEntPropFloat(entity, Prop_Data, "m_flDamage", 99.0);
SetEntPropFloat(entity, Prop_Data, "m_DmgRadius", 350.0);
Expand Down

0 comments on commit def83e9

Please sign in to comment.