UGX-Mods Login

or login with an authentication provider below
Sign In with Google
Sign In with Twitter
Sign In with Discord
Sign In with Steam
Sign In with Facebook
Sign In with Twitch

'Projectile fired' notify?

broken avatar :(
Created 9 years ago
by BluntStuffy
0 Members and 1 Guest are viewing this topic.
1,685 views
broken avatar :(
×
broken avatar :(
Location: nlApeldoorn
Date Registered: 17 December 2013
Last active: 1 year ago
Posts
1,187
Respect
1,404Add +1
Forum Rank
Zombie Colossus
Primary Group
Community Scripter Elite
My Groups
More
My Contact & Social Links
More
Personal Quote
It aint much, if it aint Dutch
Signature
×
BluntStuffy's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
Community Scripter Elite Has shown excellence and experience in the area of custom scripting in the UGX-Mods community.
Oil Rig Beta Access
Oil Rig Beta Access
BluntStuffy's Contact & Social LinksBluntstuffy@BluntZombieBluntStuffyStuffyZombie
I was wondering if there is a notify for when a projectile is fired, the same way like there's one for grenade's

Code Snippet
Plaintext
		self waittill( "grenade_fire", grenade, weapName );


i've tried using that on a projectile weapon, but it doesn't seem to work.
I know that there's is one for projectile-impacts:

Code Snippet
Plaintext
		self waittill("projectile_impact", weaponName, impact);

But i would like to get the projectile while it's in mid-air..
broken avatar :(
×
broken avatar :(
Location: se
Date Registered: 30 July 2013
Last active: 3 weeks ago
Posts
517
Respect
Forum Rank
Zombie Enslaver
Primary Group
Community Scripter
My Groups
More
My Contact & Social Links
More
×
Ege115's Groups
Community Scripter Has shown effort and knowledge in the area of scripting while being a part of the UGX-Mods community.
Ege115's Contact & Social LinksEge115
There also is,
Code Snippet
Plaintext
self waittill("weapon_fired");
Which notifies when you shoot any weapons that is being fired with left mouse click. So this notify is being detected when you shoot.
Last Edit: December 28, 2014, 09:28:57 am by Ege115
broken avatar :(
×
broken avatar :(
Location: nlApeldoorn
Date Registered: 17 December 2013
Last active: 1 year ago
Posts
1,187
Respect
1,404Add +1
Forum Rank
Zombie Colossus
Primary Group
Community Scripter Elite
My Groups
More
My Contact & Social Links
More
Personal Quote
It aint much, if it aint Dutch
×
BluntStuffy's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
Community Scripter Elite Has shown excellence and experience in the area of custom scripting in the UGX-Mods community.
Oil Rig Beta Access
Oil Rig Beta Access
BluntStuffy's Contact & Social LinksBluntstuffy@BluntZombieBluntStuffyStuffyZombie
There also is,
Code Snippet
Plaintext
self waittill("weapon_fired");
Which notifies when you shoot any weapons that is being fired with left mouse click. So this notify is being detected when you shoot.

yeh, i also knew that one. But as far as i know that doesn't allow me to get the projectile same way like the grenade_fired does?

I'm looking for something like:
( i know this one doesn't exist, it's just an example )
Code Snippet
Plaintext
  self waittill( "projectile_fired", weapname, projectile )

So that it returns the projectile itself right after it's being fired, instead of waiting for the impact..
broken avatar :(
×
broken avatar :(
Location: se
Date Registered: 30 July 2013
Last active: 3 weeks ago
Posts
517
Respect
Forum Rank
Zombie Enslaver
Primary Group
Community Scripter
My Groups
More
My Contact & Social Links
More
×
Ege115's Groups
Community Scripter Has shown effort and knowledge in the area of scripting while being a part of the UGX-Mods community.
Ege115's Contact & Social LinksEge115
yeh, i also knew that one. But as far as i know that doesn't allow me to get the projectile same way like the grenade_fired does?

I'm looking for something like:
( i know this one doesn't exist, it's just an example )
Code Snippet
Plaintext
  self waittill( "projectile_fired", weapname, projectile )

So that it returns the projectile itself right after it's being fired, instead of waiting for the impact..

Are you trying to spawn something while it's in mid-air in the projectile? If so then maybe you can just spawn or whatever in front of the player through angles/vectors after you shot?

And yea I don't know if there's any other way to get the projectile like that, I'm just trying to give other solutions that could work too.
broken avatar :(
×
broken avatar :(
Location: nlApeldoorn
Date Registered: 17 December 2013
Last active: 1 year ago
Posts
1,187
Respect
1,404Add +1
Forum Rank
Zombie Colossus
Primary Group
Community Scripter Elite
My Groups
More
My Contact & Social Links
More
Personal Quote
It aint much, if it aint Dutch
×
BluntStuffy's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
Community Scripter Elite Has shown excellence and experience in the area of custom scripting in the UGX-Mods community.
Oil Rig Beta Access
Oil Rig Beta Access
BluntStuffy's Contact & Social LinksBluntstuffy@BluntZombieBluntStuffyStuffyZombie
Think i'll just keep it a grenade-weapon then. That way seems to work, would have been just a bit nicer if it worked with projectile's too  ::)

 
Loading ...