Dear forum users! In compliance with the new European GDPR regulations, we'd just like to inform you that if you have an account, your email address is stored in our database. We do not share your information with third parties, and your email address and password are encrypted for security reasons.

New to the forum? Say hello in this topic! Also make sure to read the rules.

IPlayer throwing mode

Here you can find ScriptAPI suggestions implemented in the game.
Forum rules
By using the forum you agree to the following rules.
Locked
User avatar
Danger Ross
Superfighter
Superfighter
Posts: 154
Joined: Thu Mar 31, 2016 12:56 am
Title: Dangerous
SFD Alias: Danger Ross
Started SFD: 14 june 2012 (launch day)
Location: California
Gender:
Age: 23

IPlayer throwing mode

Post by Danger Ross » Sat Feb 08, 2020 11:30 pm

It would be extremely useful if it was possible to tell if the player is throwing or not. As of right now, there's no way to differentiate between the player shooting a gun or throwing the gun (which are two completely different things). I'm specifically talking about the moment when the attack key is pressed.

here are the current IPlayer options:
IsHipFiring returns true if the player is throwing a weapon without aiming
IsManualAiming returns true if the player is aiming the weapon (even if throwing).
IsThrowing only returns true during the throwing animation and nothing else. The reason why this isn't substantial is because it's not understood whether or not the player is shooting or aiming a throw before the throw takes place.

There's no good way of telling if someone is firing a gun or ready to throw it.
6 x
sorry bucko, you can't punch with swords 8-)

User avatar
Gurt
Lead Programmer
Lead Programmer
Posts: 1884
Joined: Sun Feb 28, 2016 3:22 pm
Title: Lead programmer
Started SFD: Made it!
Location: Sweden
Gender:
Age: 34

Post by Gurt » Sat Mar 21, 2020 6:36 pm

Added IPlayer.InThrowingMode after v.1.3.4 which you can use to see if the player is ready to throw the weapon or not.
1 x
Gurt

Locked