Skip to content

Instantly share code, notes, and snippets.

@ZaSpai
Last active August 29, 2015 14:01
Show Gist options
  • Select an option

  • Save ZaSpai/2736ae0eca9a21cb7a09 to your computer and use it in GitHub Desktop.

Select an option

Save ZaSpai/2736ae0eca9a21cb7a09 to your computer and use it in GitHub Desktop.
Creates a QC equippable weapon upon Character Death or keypress DROP_WEAPON, as sent by SendEventCreateQCWep
//Performs the Create Weapon for a pickup
//argument0: class of the dead character, or weapon subtype
//argument1: the irandom(20)
//argument2: owner x
//argument3: owner y
var wep;
instance_create(argument2,argument3 - 8,global.QCWep);
wep.direction = 80 + argument2;
wep.speed = 7;
wep.subtype = argument0;
ds_list_add(global.qcWepList, wep);
wep.wepID = ds_list_size(global.qcWepList) - 1;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment