]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/client/miscfunctions.qc
Clean some things up
[xonotic/xonotic-data.pk3dir.git] / qcsrc / client / miscfunctions.qc
index 2c2fc56df0983219934ebbdd062dda2ca767fc6e..b1dcce0ee25d3cdbe6370dd9349fdfbdb29be2e1 100644 (file)
@@ -573,6 +573,17 @@ vector getplayerorigin(float pl)
        return GETPLAYERORIGIN_ERROR;
 }
 
+float getplayeralpha(float pl)
+{
+       entity e;
+
+       e = CSQCModel_server2csqc(pl + 1);
+       if(e)
+               return e.alpha;
+
+       return 1;
+}
+
 float getplayerisdead(float pl)
 {
        entity e;