Git Product home page Git Product logo

l4d2_direct's Introduction

l4d2_direct

This project aims to expose Director and other variables to sourcepawn scripters.

Previously this sort of work was done through left4downtown2, but since Sourcemod 1.4 direct address reads and writes are available directly through sourcepawn.

Ideally, l4d2_direct will provide a simple API for reading and writing to the various CDirector classes, ZombieManager, TerrorNavMesh, and other useful classes.

Code is released under GPLv3 as with every other SourcePawn project.

l4d2_direct's People

Contributors

attano avatar jahze avatar matthewclair avatar prodigysim avatar stabbath avatar thevintik avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

l4d2_direct's Issues

L4D2_Direct.inc Issue

I get a compiler warning that L4D2_Direct_SetTankTickets should return a value. I know it is no biggie, but maybe just return the ticket number on success?

L4D2Direct_GetVSTankToSpawnThisRound wrong round when teams are flipped

The parameter for L4D2Direct_GetVSTankToSpawnThisRound should be a team number instead of a round number.

If you try to determine whether the tank will spawn for the current round doing something like L4D2Direct_GetVSTankToSpawnThisRound(GameRules_GetProp("m_bInSecondHalfOfRound")) then you will be looking up the wrong round if the teams are flipped. You need to do something like L4D2Direct_GetVSTankToSpawnThisRound(GameRules_GetProp("m_bAreTeamsFlipped")) to get the correct value for the current round.

I think the other functions that take a roundNumber should also be treated as a team number instead, but I have only tested L4D2Direct_GetVSTankToSpawnThisRound so far.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.