Impulse Grenade
2 Attachment(s)
IMPULSE GRENADE - Description - This plugin replaces the smoke grenade with a a funny feature similar to a Fortnite's: If you throw the smoke grenade and it explodes close to a player, he'll be impulsed with the explosion. It does a little damage. Theres a random video I found with that feature - https://www.youtube.com/watch?v=WUftN-hy19w - Cvars impulsegrenade_on - Turn plugin on/off impulsegrenade_self_impulse - Self impulse on/off impulsegrenade_multiplier - Impulse's multiplier impulsegrenade_radius - Explosion radius impulsegrenade_ffa - Impulse teammates. impulsegrenade_killmoney - Amount of money that the player gets when he kill someone with the Impulse Grenade. impulsegrenade_killinfo - Display when someone kills another player with the Impulse Grenade. impulsegrenade_impactmode - Instant explosion after touch the worldspawn or a player). - Credits Nomexous' Weapon Physics (Weapons being impulsed with the HE Explosion, just changed to smoke and made it work with players) - https://forums.alliedmods.net/showthread.php?p=580384 - Change log
Spoiler
|
Re: Impulse Grenade
Plugin Updated to v1.1
Code:
. Added money bonus when someone kills another player with the Impulse Grenade. |
Re: Impulse Grenade
Look great, gj :)
|
Re: Impulse Grenade
Its 2018, why you still change viewmodels with CurWeapon event?
|
Re: Impulse Grenade
Because I want.
|
Re: Impulse Grenade
Quote:
|
Re: Impulse Grenade
Ty
|
Re: Impulse Grenade
Looks cool!
|
Re: Impulse Grenade
...
|
Re: Impulse Grenade
Updated to v1.2:
Code:
. Added impact mode (instant explosion after touch). |
Re: Impulse Grenade
1.
Quote:
2.Don't use FM_Touch when you want to catch specific touches between entities, register_touch from engine or Ham_Touch should be better in this case because filtering is doing in the module. 3. PHP Code:
4.Use real offset names OFFSET_GRENADE - > m_usEvent 5.Don't duplicate code, create a private function for this: PHP Code:
|
Re: Impulse Grenade
I'm still without understand what's the problem with CurWeapon. The rest are done.
|
Re: Impulse Grenade
Because CurWeapon is called everytime a weapon is fired or weapon changed (or clip ammo changed to be precise).
|
Re: Impulse Grenade
Quote:
That's like saying using preThink to detect IN_ATTACK is fine instead of using PrimaryAttack. |
Re: Impulse Grenade
Quote:
Updated to v1.3: - Code optimized. . Added impulsegrenade_impactmode cvar to turn on/off impact mode. Off: Incrível a cara de pau, "PerfectPug", sma toda bugada, Premier até usou a minha :3 |
Re: Impulse Grenade
brazil is toxic :(
|
Re: Impulse Grenade
Nice plugin, +1
|
Re: Impulse Grenade
Server Crashes for some reason as soon as the grenade is thrown.
|
Re: Impulse Grenade
1 Attachment(s)
I was getting sometimes as well, try this one:
|
Re: Impulse Grenade
Quote:
Quote:
Update: Thanks for the fix, it is working now :) |
Re: Impulse Grenade
1.g_offEvent: I said to use real offset names so people understand what the code is going. The right name is m_usEvent. I did not come up with it, that's how the offset is named in game's code.
2.Since you are using Ham_TakeDamage you can get rid of manually calling deathmsg by changing DMG_BLAST to DMG_GRENADE in TakeDamage call. |
Re: Impulse Grenade
Done.
|
Re: Impulse Grenade
You need to define DMG_GRENADE, IIRC it's 1 << 24.
|
Re: Impulse Grenade
I compiled fine with 1.8.3, forget to define < 1.8.2.
|
Re: Impulse Grenade
its just crash server when throw :(
all files on server ok amxmodx 190-5229, metamod 1.21p37 ---- ah, ok, this workin fine - https://forums.alliedmods.net/showpo...2&postcount=19 |
Re: Impulse Grenade
Hi! Can you make this code to be for flashbang? Thank you!
Code:
#include <amxmodx> |
Re: Impulse Grenade
I have version 1.3, but I have downloaded it far sooner than you made the last changes. The server crashes if someone got a kill with it.
I have removed the pfnPlaybackEvent as you have in the latest code, but without that the smoke appears with the explosion effect. So I have put that in your latest version and now it works fine, but the server still crashes after the someone gets killed with this. Edit2: I have upgraded AMXX to latest build 5235 from 5229, now it works without a crash. It's magic :D Furthermore I want to report if FFA is set to 0 then self impulse does not work, because victim has the same team as attacker. |
Re: Impulse Grenade
So what's the problem? If the FFA cvar is 0 then you shouldn't impulse a teammate.
|
Re: Impulse Grenade
That makes impulsegrenade_self_impulse cvar pointless.
|
Re: Impulse Grenade
Why pointless? It controls if you can impulse your teammates.
|
Re: Impulse Grenade
EFFx, I think he's saying something totally different.
impulsegrenade_self_impulse controls if you can impulse yourself, right? FFA controls if you can impulse teammates, right? Now think about this: FFA is 0 and impulsegrenade_self_impulse is 1. You should not impulse your teammates, and you should impulse yourself. BUT, you will not be able to impulse yourself because FFA is 0 and your team is identical to your team. FFA makes impulsegrenade_self_impulse not count. |
Re: Impulse Grenade
Oh yea, I've fixed it and also, added a code that kills the beam when the player touches the ground.
|
Re: Impulse Grenade
that plugin needs a lot of optimization...
|
All times are GMT -4. The time now is 06:59. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.