Skip to content

Instantly share code, notes, and snippets.

@mrflay
mrflay / model.cfg
Created June 17, 2013 08:43
Compound Bow Model Configuraiton
class CfgSkeletons
{
class Default
{
isDiscrete=1;
skeletonInherit="";
skeletonBones[]={};
};
class FLAY_BowSkeleton: Default
{
@mrflay
mrflay / config.cpp
Created June 17, 2013 07:36
Compound Bow Configuration
class CfgPatches
{
class FLAY_Archery
{
requiredaddons[] = {};
requiredversion = 0.1;
units[] = {"FLAY_Target_FITA_122","FLAY_Target_Fold"};
weapons[] = {"FLAY_CompoundBow","FLAY_RecurveBow","FLAY_Arrow"};
magazines[] = {"FLAY_1Rnd_RegularArrow","FLAY_1Rnd_BroadheadArrow","FLAY_1Rnd_ExplosiveArrow","FLAY_1Rnd_SmokeArrow","FLAY_1Rnd_FlareArrow"};
};
@mrflay
mrflay / arma1.templates.cpp
Created April 11, 2013 16:30
ZGM-esque visitor template containing all arma1 objects.
#define NATURAL 1
#define ARTIFICIAL 2
#define ROADS 3
#define RECTANGLE 0
#define ELLIPSE 1
#define RGB_DEFAULT -1
#define RGB_BLACK 0x000000
@mrflay
mrflay / make_objects.py
Created April 11, 2013 16:25
Scans specified directories for models and writes them to an object export file.
#!python
#
# Scans specified directories for models and writes them to an object export file.
# The objects can be added to visitor using 'depew -IVP objects.txt /path/to/your/island.pew'.
import os
# The name of the generated object export file.
objects_filename = 'objects.txt'
@mrflay
mrflay / make_templates.py
Created April 11, 2013 16:23
Quick and dirty script for generating ZGM style visitor templates.
#!python
#
# Quick and dirty script for generating ZGM style visitor templates.
#
# Usage: Edit the 'dirs' and 'patterns' below to suit your project, then simply
# run the script in a python shell. The templates will be written to the
# templates.txt file in the current directory.
#
# Run 'depew -IT /path/to/your/island.pew templates.txt' to import the
# templates (note that all existing objects will be deleted)