Raised This Month: $ Target: $400
 0% 

[L4D2] Grenade Launcher Random Projectile v1.1 [30-November-2022]


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author
NoroHime
Veteran Member
Join Date: Aug 2016
Location: bed
Plugin ID:
8272
Plugin Version:
1.1
Plugin Category:
Fun Stuff
Plugin Game:
Left 4 Dead
Plugin Dependencies:
Servers with this Plugin:
 
Plugin Description:
random the grenadelauncher make surprise.
Old 11-03-2022 , 14:55   [L4D2] Grenade Launcher Random Projectile v1.1 [30-November-2022]
Reply With Quote #1

about
  • make for funny, chance to launch variant projectile
  • the projectiles include tank rock / pipe bomb / spitter acid / vomit jar / molotov
  • you can set very small chance to launch spitter acid make surprise to your player or something else
  • can press key to make projectile anti-gravity, maybe not relevant, but i really need it


ConVar

PHP Code:
// chance to trigger random Projectiles, if not set, use *_type
grenadelauncher_random_chance "0.5"

// make projectile anti-gravity -1=always 0=never other=specifis key pressed 131072=shift 4=ctrl
grenadelauncher_random_fly "131076"

// if trigger by *_chance, which projectiles random launch by Grenade Launcher
// 1=molotov 2=pipe bomb 4=spitter 8=vomit jar 16=tank rock -1=All
// add numbers together you want.
grenadelauncher_random_rand "-1"

// time(seconds) of timeout to detonate the grenade
grenadelauncher_random_timeout "6.0"

// plugin default type if trigger
// 0=vanilla 1=molotov 2=pipe bomb 4=spitter 8=vomit jar 16=tank rock
grenadelauncher_random_type "0" 

changelog
  • v1.0 just releases; 4-November-2022
  • v1.0.1 fix issue 'some grenade doesnt have owner'; 4-November-2022(2nd time)
  • v1.0.2 doubled the double check, for safe; 4-November-2022(3rd time)
  • v1.1 for dev,
    add forward event 'void OnGLProjectileReplaced(int before, int after, int client)'
    add natives 'void DisableGLListener()', 'void EnableGLListener()'; 30-November-2022

Installation
for Developers
PHP Code:
forward void OnGLProjectileReplaced(int beforeint afterint client);

public 
void OnGLProjectileReplaced(int beforeint afterint client) {}

native void DisableGLListener();
native void EnableGLListener(); 
Related Plugins
[L4D2] Grenade Launcher Random Projectile - work together, and make random projectile has extra explosion
[L4D2] Remote Control Grenade Launcher with Random Projectile (SourceMod)
Attached Thumbnails
Click image for larger version

Name:	launching tank rock.jpg
Views:	289
Size:	90.9 KB
ID:	197757  
Attached Files
File Type: sp Get Plugin or Get Source (l4d2_grenadelauncher_random.sp - 508 views - 7.7 KB)
__________________

Last edited by NoroHime; 11-29-2022 at 12:00.
NoroHime is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


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


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