mirror of
https://github.com/InfinityLoader/IL-GSC.git
synced 2025-07-09 15:07:57 -05:00
Added AW, BO2, Ghosts, IW, MWR, WW2 Scripts
This commit is contained in:
32
BO2/PC/ZM/codescripts/character_mp.gsc
Normal file
32
BO2/PC/ZM/codescripts/character_mp.gsc
Normal file
@ -0,0 +1,32 @@
|
||||
/*******************************************************************
|
||||
* Decompiled By: Bog
|
||||
* Decompiled File: codescripts\character_mp.gsc
|
||||
* Game: Call of Duty: Black Ops 2
|
||||
* Platform: PC
|
||||
* Function Count: 3
|
||||
* Decompile Time: 6 ms
|
||||
* Timestamp: 10/27/2023 3:01:58 AM
|
||||
*******************************************************************/
|
||||
|
||||
#include codescripts/character;
|
||||
|
||||
//Function Number: 1
|
||||
setmodelfromarray(a)
|
||||
{
|
||||
self setmodel(a[randomint(a.size)]);
|
||||
}
|
||||
|
||||
//Function Number: 2
|
||||
precachemodelarray(a)
|
||||
{
|
||||
for(i = 0;i < a.size;i++)
|
||||
{
|
||||
precachemodel(a[i]);
|
||||
}
|
||||
}
|
||||
|
||||
//Function Number: 3
|
||||
attachfromarray(a)
|
||||
{
|
||||
self attach(codescripts/character::randomelement(a),"",1);
|
||||
}
|
Reference in New Issue
Block a user