Coder Social home page Coder Social logo

Comments (2)

samisalreadytaken avatar samisalreadytaken commented on September 26, 2024

Sorry for the late reply. Due to a disaster in February, I was displaced and had to leave everything behind.

I can make these changes when I get access to a computer, in the meanwhile you can disable these yourself by removing the lines below. If this all works well, I might add the ability to keep multiple paths loaded at once as well.

Though note that I haven’t tested this script for spectators before, and the first player to join the server is chosen as the camera controller.

Hud text

m_hHudHint.__KeyValueFromString( "message", s );
return EntFireByHandle( m_hHudHint, "ShowHudHint", "", 0.0, player.self );

Sound

return player.EmitSound(s);

Playback countdown

// Count down from 2 in preview mode
if ( !m_bPreview )
{
MsgHint("Starting in 3...\n");
PlaySound( SND_COUNTDOWN_BEEP );
t = 1.0;
}
VS.EventQueue.AddEvent( MsgHint, t, [this, "Starting in 2...\n"] );
VS.EventQueue.AddEvent( PlaySound, t, [this, SND_COUNTDOWN_BEEP] );
t += 1.0;
VS.EventQueue.AddEvent( MsgHint, t, [this, "Starting in 1...\n"] );
VS.EventQueue.AddEvent( PlaySound, t, [this, SND_COUNTDOWN_BEEP] );
t += 1.0;
player.SetHealth(1337);
HideHudHint( t );

Auto team assignment

if ( player.GetTeam() != 2 && player.GetTeam() != 3 )
player.SetTeam(2);

from keyframes.

Related Issues (5)

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.