AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   [TF2] Effects (spells & canteen & buildings) (https://forums.alliedmods.net/showthread.php?t=230384)

avi9526 11-24-2013 11:25

[TF2] Effects (spells & canteen & buildings)
 
1 Attachment(s)
This is continuation of «spells.sp» from here https://forums.alliedmods.net/showthread.php?t=228982

Description:
Allows players to use cool stuff. See list bellow. Plugin was designed for fun and MvM servers. Canteen charges work for 15 seconds - it's hardcoded at this moment. After connection to server or usage of the effect player must wait to use it again - this specified by cvar's below (by default wait time is 60 seconds for any effect - recommend to change it).

List of effects:
Code:

Spells:
transpose
- Transpose
fireball - Fireball
bats - Bats
lightning - Lightning
skeleton - Skeleton
monoculus - Monoculus
meteors - Meteor Shower
Canteen:
uber - Uber Charge
crit - Critical Charge
regen - Refill Ammo and Health
cloak - Cloak
base - Teleport to the Base
speed - Speed-up
heal - Add Health
Build:
sentry1 - Build Sentry Level 1
sentry2 - Build Sentry Level 2
sentry3 - Build Sentry Level 3
sentrymini - Build Sentry Mini
disp - Build Dispenser
killaim - Destroy Building at Aim
killbuild - Destroy All Buildings

Console commands:
Code:

sm_spell or sm_spells - show spells menu
sm_canteen - show canteen menu
sm_build - show building menu
sm_effect or sm_effects - show main menu with commands from above

You can use effect with console:
Code:

sm_spell sentry1
will build a sentry - all above commands work same in case if argument specified. For instant list of effects write in chat
Code:

!spells help
Access control:
These commands NOT exist, they just used to access control. By default effects available for anyone, if You want to change it - add to your «/addons/sourcemod/configs/admin_overrides.cfg» following lines
Code:

"sm_effects_access"    "a"    // access to effects only for players with "a" access flag
"sm_effects_admin"    "c"    // players who has access to this command considered as admins
"sm_effects_premium"    "a"    // players who has access to this command considered as premium


Console variables:

Add this to your server configuration file. Negative value (-1) will disable effect
Code:

sm_waitmult_admin 0.5 // wait time multiplier for admins (those, who has access to sm_effects_admin command)
sm_waitmult_premium 0.75 // wait time multiplier for premium players  (those, who has access to sm_effects_premium command)

sm_buildlimit 1 // how many building player can build

// Delay for spells
sm_spelldelay_fireball 10
sm_spelldelay_bats 12
sm_spelldelay_transpose 1
sm_spelldelay_lightning 45
sm_spelldelay_monoculus 240
sm_spelldelay_meteors 180
sm_spelldelay_skeleton 55
// Delay for canteen
sm_chargedelay_uber 60
sm_chargedelay_crit 75
sm_chargedelay_regen 100
sm_chargedelay_cloak 15
sm_chargedelay_base 25
sm_chargedelay_heal 520
sm_chargedelay_speed 35
// Delay for buildings
sm_builddelay_sentry1 15
sm_builddelay_sentry2 30
sm_builddelay_sentry3 60
sm_builddelay_sentrymini 20
sm_builddelay_disp 10
sm_builddelay_killaim 1
sm_builddelay_killbuild 1


Development:

Latest version available here https://bitbucket.org/avi9526/spells/src but it may not work properly.

Known issues:
Canteen, spells and building, unfortunately, doesn't work properly as default ones…
Cloak was reported to crash server - in this case you can disable it with
Code:

sm_chargedelay_cloak -1

Changelog:

Code:

2.1.2 - Access control. Particle decoration for some effects.
2.0.6 - Posted as separated plugin


avi9526 11-27-2013 14:46

Re: [TF2] Effects (spells & canteen & buildings)
 
1 Attachment(s)
New test version 2.0.7 - not posting in main message because testing
Trying to use particles as decoration for some effects.
TODO & FIX:
1) Incorrect handling of particles can make problems (previous test versions have removed weapons etc … when try remove particle entity)
2) Eye light particles can be attached only to player classes that has 2 eyes (has attachement parts called "righteye" and "lefteye")
Pyro seems also can have eye light being attached to his mask, but I don't know how this attachment part called.
3) Robot models don't have "righteye" and "lefteye" attachment parts.

Screen shots:
http://storage7.static.itmages.ru/i/...92019c84a4.jpg
team color eye light for crit charge

http://storage7.static.itmages.ru/i/...fbb107db0d.jpg
building appear
http://storage6.static.itmages.ru/i/...047501676c.jpg
building disappear
http://storage6.static.itmages.ru/i/...60a03a671b.jpg
same crit charge decoration on scout
http://storage6.static.itmages.ru/i/...8a58aec2ed.jpg
uber charge - green eye light decoration

StayOx 12-01-2013 19:49

Re: [TF2] Effects (spells & canteen & buildings)
 
This plugin is very fun, good job :)

avi9526 12-16-2013 16:03

Re: [TF2] Effects (spells & canteen & buildings)
 
Guys, when you install this mod on your server - please, notify other admins and players about it. Cause I joined some server from Poland, start «raping» players with this mod and get banned for hax… lol

PS
It was 2 most awesome minutes in all my TF2 gameplay )

StayOx 12-17-2013 00:36

Re: [TF2] Effects (spells & canteen & buildings)
 
Quote:

Originally Posted by avi9526 (Post 2072839)
Guys, when you install this mod on your server - please, notify other admins and players about it. Cause I joined some server from Poland, start «raping» players with this mod and get banned for hax… lol

PS
It was 2 most awesome minutes in all my TF2 gameplay )

banned by Steam VAC?!! :shock:

napalm00 12-17-2013 00:59

Re: [TF2] Effects (spells & canteen & buildings)
 
Quote:

Originally Posted by StayOx (Post 2072986)
banned by Steam VAC?!! :shock:

Yes and Gabe personally burnt his house down and murdered his family.

StayOx 12-17-2013 01:21

Re: [TF2] Effects (spells & canteen & buildings)
 
Quote:

Originally Posted by napalm00 (Post 2072992)
Yes and Gabe personally burnt his house down and murdered his family.

Spoiler


avi9526 12-17-2013 04:23

Re: [TF2] Effects (spells & canteen & buildings)
 
Quote:

Originally Posted by StayOx (Post 2072986)
banned by Steam VAC?!! :shock:

no, by admin, which didn't know this mod was installed on his server)

StayOx 12-17-2013 08:47

Re: [TF2] Effects (spells & canteen & buildings)
 
Quote:

Originally Posted by avi9526 (Post 2073040)
no, by admin, which didn't know this mod was installed on his server)

ah ok, actually I can not tell whether it is possible to get banned by vac because of a plugin, so my noob question, There are some pretty crazy plugins eg: #1 and #2 out there xD

avi9526 12-27-2013 16:18

Re: [TF2] Effects (spells & canteen & buildings)
 
Mr.Orion, huge thanks for this. But there is still one big problem - how to detect which attachment part currently available, and also hook player model change (if player used !robot or etc)…


All times are GMT -4. The time now is 12:17.

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