Skip to content

Instantly share code, notes, and snippets.

View InstancedSprite.cpp
class script
{
}
class InstancedSprite : trigger_base
{
scene@ g;
scripttrigger@ self;
View RainbowStream.cpp
#include 'math.cpp';
class RainbowStream : trigger_base
{
scene@ g;
scripttrigger@ self;
sprites@ star_spr;
[position,mode:world,layer:19,y:start_y] float start_x;
@cmann1
cmann1 / PropsWind.cpp
Created Jan 3, 2018
DustMod Prop Wind Script
View PropsWind.cpp
const float DT = 1.0 / 60;
class script
{
[text] PropsWind props_wind;
array<controllable@> players;
int num_players;
script()
@cmann1
cmann1 / EntityOutliner.cpp
Last active Dec 23, 2018
DustMod Entity Outline Script
View EntityOutliner.cpp
const int ATTACK_TYPE_IDLE = 0;
float lerp(float a, float b, float x)
{
return a * (1.0 - x) + b * x;
}
class script : callback_base
{