Raised This Month: $51 Target: $400
 12% 

[L4D2] Satellite Cannon


Post New Thread Reply   
 
Thread Tools Display Modes
phoenix0001
Senior Member
Join Date: Apr 2010
Location: China
Old 04-07-2018 , 06:35   Re: [L4D2] Satellite Cannon
Reply With Quote #41

How to help these 3 functions assigned to 3 weapons, each weapon 1 function?

How to cancel damage and freezing to survivors?
__________________
I like this BBS sharing of spirit

I come from China, my English is poor
phoenix0001 is offline
wyxls
Junior Member
Join Date: Jul 2010
Location: China
Old 03-08-2020 , 16:45   Re: [L4D2] Satellite Cannon
Reply With Quote #42

I add "sm_satellite_adminunlimit" convar to control whether admin have unlimited energy and some flags to specify which admin can use satellite or have unlimit energy.

Add mode shift hint message for 4 options
Code:
#define MESSAGE_SHIFT_JUDGEMENT	"MODE SHIFT: JUDGEMENT"
#define MESSAGE_SHIFT_BLIZZARD	"MODE SHIFT: BLIZZARD"
#define MESSAGE_SHIFT_INFERNO	"MODE SHIFT: INFERNO"
#define MESSAGE_SHIFT_SLEEP	"MODE SHIFT: SLEEP"
Add following flag override in sourcemod/configs/admin_overrides.cfg
Code:
"magnum_satellite"		"q"
"magnum_satellite_unlimit" 	"q"
Add convars
Code:
sm_satellite_adminonly       "1"
sm_satellite_adminunlimit   "1"
if sm_satellite_adminonly 0 + sm_satellite_adminunlimit 0, everyone can use satellite and energy is limited.

if sm_satellite_adminonly 0 + sm_satellite_adminunlimit 1, everyone can use satellite and energy is limited. But admin with "p" flag have unlimited energy

if sm_satellite_adminonly 1 + sm_satellite_adminunlimit 0, only admin with "o" flag can use satellite and energy is limited.

if sm_satellite_adminonly 1 + sm_satellite_adminunlimit 1, only admin with "o" flag can use satellite and with "p" flag have unlimited energy.

Only tested on L4D2. If there's any problem, please let me know.
[email protected]

Last edited by wyxls; 03-08-2020 at 16:47.
wyxls is offline
wyxls
Junior Member
Join Date: Jul 2010
Location: China
Old 03-10-2020 , 11:29   Re: [L4D2] Satellite Cannon
Reply With Quote #43

Quote:
Originally Posted by teoniiks View Post
Do you think you could add balance by having each mode limited number of shots and have it like a special ammo reward?
The energy is the limit ( can be edited in .cfg)

Special ammo reward? you mean this one? [L4D2] Special Ammo Awards

It's possible if you learn how the reward works and combine the code each of them. But it's not my interest. So, sorry!

The reward plugin code is not quite hard to understand. There're some keys.

GiveSpecialAmmo() is the part which decide special ammo type
SetSpecialAmmoInPlayerGun() reads player's gun and special ammo amount that should give to player
SetGunSpecialAmmo() is the key function to actually give special ammo

You could copy the whole code to Satellite Cannon.sp and modify any of the part mentioned above to set energy[i][MODE_xxxx], the variable that control how much times could specific player use satellite cannon.

Last edited by wyxls; 03-10-2020 at 11:30.
wyxls is offline
SoltekGamerz
Junior Member
Join Date: Aug 2016
Old 11-20-2023 , 14:46   Re: [L4D2] Satellite Cannon
Reply With Quote #44

L4D2: Satellite Cannon v1.4

I don't speak English, I live in Central America, I use Google Translate to translate.

This is a modification of the original plugin, I hope it helps you all.

Changes:

1- Survivors now don't take damage from the attacker

2- The Tank should freeze in Blizzard Mode.

3- Fixed the message system (PrintHint)

If someone can provide a perfect translation into English, please do so.

All credits to the Author of this plugin.

Note: do not hit Get Plugin since it was compiled in an old version of sourcemod.

Attached Files
File Type: smx l4d2_satellite.smx (19.4 KB, 21 views)
File Type: sp Get Plugin or Get Source (l4d2_satellite.sp - 41 views - 28.5 KB)

Last edited by SoltekGamerz; 11-20-2023 at 15:01.
SoltekGamerz is offline
SoltekGamerz
Junior Member
Join Date: Aug 2016
Old 11-23-2023 , 12:47   Re: [L4D2] Satellite Cannon
Reply With Quote #45

L4D2: Satellite Cannon v1.5

- More fixes for this great plugin


New Changes:

For version 1.5

1- You can now shoot while crouching, in the 3 *MODES*.

2- Every time you shoot while crouching, consume more ammo.

3- Added 3 cvar for crouch shot.


For version 1.4

1- Survivors now don't take damage from the attacker

2- The Tank should freeze in Blizzard Mode.

3- Fixed the message system (PrintHint)


Sorry if my English is terrible..

Attached Files
File Type: smx l4d2_satellite.smx (20.5 KB, 23 views)
File Type: sp Get Plugin or Get Source (l4d2_satellite.sp - 40 views - 32.4 KB)
SoltekGamerz is offline
sirphr
Member
Join Date: Jun 2010
Location: Florida, USA
Old 11-24-2023 , 14:48   Re: [L4D2] Satellite Cannon
Reply With Quote #46

Quote:
Originally Posted by SoltekGamerz View Post
L4D2: Satellite Cannon v1.5

- More fixes for this great plugin


New Changes:

For version 1.5

1- You can now shoot while crouching, in the 3 *MODES*.

2- Every time you shoot while crouching, consume more ammo.

3- Added 3 cvar for crouch shot.


For version 1.4

1- Survivors now don't take damage from the attacker

2- The Tank should freeze in Blizzard Mode.

3- Fixed the message system (PrintHint)


Sorry if my English is terrible..

What version of SM is this compiled in? Trying to update the messages for English but 1.11 is too new.
__________________
sirphr is offline
SoltekGamerz
Junior Member
Join Date: Aug 2016
Old 11-27-2023 , 21:14   Re: [L4D2] Satellite Cannon
Reply With Quote #47

L4D2: Satellite Cannon v1.6

- Maybe this is my last update

- Sorry, I have very poor English.


Change log:

Last version 1.6

1- Updated and compiled in SM 1.11

2- Administrators can now correctly use immunity and infinite ammo in the "sm_satellite_adminonly" cvar

3- The attacker now takes damage


For version 1.5

1- You can now shoot while crouching, in the 3 *MODES*.

2- Every time you shoot while crouching, consume more ammo.

3- Added 3 cvar for crouch shot.


For version 1.4

1- Survivors now don't take damage from the attacker

2- The Tank should freeze in Blizzard Mode.

3- Fixed the message system (PrintHint)


Enjoy..

Attached Files
File Type: smx l4d2_satellite.smx (20.6 KB, 26 views)
File Type: sp Get Plugin or Get Source (l4d2_satellite.sp - 51 views - 35.6 KB)
SoltekGamerz is offline
Reply



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 21:12.


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