Scenario:
I have an amazing idea for the mod! It will feature new NPCs, new weapons and much more!
I don't have any experience in programming! How do I implement all the stuff I have in mind?
The answer:
Scenario:
I have an amazing idea for the mod! It will feature new NPCs, new weapons and much more!
I don't have any experience in programming! How do I implement all the stuff I have in mind?
The answer:
ResetHUD is sent | InitHUD is sent | |
---|---|---|
Loading a new map / Restarting a map | Yes | Yes |
On the level transition | No | No |
When loading the save | Yes | Yes |
On 'fullupdate' command | Yes | No |
These notes were written in the process of porting the Field Intensity campaign to Sven Co-op. The list describes issues I encountered while I was working on the port as well as some other thoughts on improving the game.
func_train
respect its origin instead of the geometrical center when moving on pack_tracks (I had to manually move the path_tracks to align with the center of the brush model). Look up Origin on paths
spawnflag in SoHL.import std.regex; | |
import std.stdio; | |
import std.file; | |
import std.conv; | |
void main(string[] args) | |
{ | |
auto paramRegex = regex(`"(\w+)"\s+"(\w+)"`); | |
for (ulong i=1; i<args.length; ++i) |
#define TRIGGER_RANDOM_MAX_COUNT 16 | |
#define SF_TRIGGER_RANDOM_START_ON 1 | |
#define SF_TRIGGER_RANDOM_ONCE 2 | |
#define SF_TRIGGER_RANDOM_REUSABLE 4 | |
#define SF_TRIGGER_RANDOM_TIMED 8 | |
#define SF_TRIGGER_RANDOM_UNIQUE 16 | |
#define SF_TRIGGER_RANDOM_DONT_REPEAT 32 | |
class CTriggerRandom : public CPointEntity |
Install and run Visual Studio Installer. The installer allows you to choose specific components. Select Desktop development with C++
. You can untick everything you don't need in Installation details, but you must keep MSVC
and C++ CMake tools for Windows
ticked.
Run Developer command prompt for VS
via Windows Start
menu. Inside the prompt navigate to the hlsdk directory, using cd
command, e.g.
cd C:\Users\username\projects\hlsdk-xash3d
#!/bin/sh | |
# Generate icons for twitch rewards using imagemagick's or graphicsmagick's convert. | |
# Quantify the image file if it does not fit in 25kb limits. | |
if [ -z "$1" ] | |
then | |
echo "Usage: $0 path-to-image-file" | |
exit 1 | |
fi |
// cl /EHsc Ole32.lib Shell32.lib Shlwapi.lib eraseitem.cpp | |
#include <iostream> | |
#include <windows.h> | |
#include <Ole2.h> | |
#include <shlobj.h> | |
#include <shlwapi.h> | |
#include <string> | |
int main() | |
{ |
Computer Information: | |
Manufacturer: Unknown | |
Model: Unknown | |
Form Factor: Desktop | |
No Touch Input Detected | |
Processor Information: | |
CPU Vendor: GenuineIntel | |
CPU Brand: Intel(R) Core(TM) i5-4590 CPU @ 3.30GHz | |
CPU Family: 0x6 |
#!/usr/bin/python | |
import dbus | |
import dbus.mainloop.glib | |
import glib | |
dbus.mainloop.glib.DBusGMainLoop (set_as_default = True) | |
session_bus = dbus.SessionBus() | |
def write_track(track): |