Comments (6)
Actually I recommend for everyone to have a IsModuleEnabled() check where we
can add
if the module is enabled _and_ if the entire mod overall is enabled.
Also OnModuleEnabled() //call this from OnPluginStart, hook any events
and OnModuleDisabled // call back when we toggle module or srs disable, kill any
timers here and undo anything special like godmode if its on, unhook events.
Make them all static for now.
We will shortly add a l4d2_srs_enabled 0/1 cvar to disable the entire mod.
ModuleEnabled/Disabled will be called by OnConVarChange.
Original comment by [email protected]
on 15 Jan 2010 at 8:00
from srsmod.
Setting this to B2 since it doesn't need to be fixed today.
Original comment by [email protected]
on 15 Jan 2010 at 8:40
- Added labels: Priority-Medium, Milestone-AW-B2
from srsmod.
Original comment by [email protected]
on 15 Jan 2010 at 8:40
- Added labels: Module-ItemRemoval
from srsmod.
CVAR should also probably be:
l4d2_srs_remove_items_enabled
Since that's the name of the module.
Original comment by [email protected]
on 16 Jan 2010 at 9:24
from srsmod.
Errr, meant l4d2_srs_item_removal? maybe tack on _enabled there?
Original comment by [email protected]
on 16 Jan 2010 at 11:21
from srsmod.
This issue is now a subset of issue 14, so I am closing it.
Original comment by [email protected]
on 16 Jan 2010 at 10:31
- Changed state: Duplicate
from srsmod.
Related Issues (20)
- Defect Debug Function HOT 4
- Removing the world entity causes server crash HOT 7
- Allow individual modules to compile independently.
- RFC: Consistent CVARs HOT 6
- RFC: Plugin/Module-wide disables HOT 5
- Bosses Unprohibit causes early Finale End HOT 5
- RFC: Post-AW Feature Wish List HOT 7
- DaC5 Grenade Launcher Is Not Removed HOT 2
- Turn on water brake by default HOT 5
- Water Brake GetEntData Error HOT 4
- Servercrash HOT 5
- Remove finale auto-spawns
- Infected Despawner debug messages HOT 2
- Scoring Module Requirements HOT 3
- Implement Translation Support HOT 3
- Error log "Ready Up"
- Change jockey recharge rate after incapacitating a survivor HOT 10
- Code review request for initial infrastructure HOT 3
- Code review request HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from srsmod.