mirror of
https://github.com/lifestorm/wnsrc.git
synced 2025-12-16 21:33:46 +03:00
30 lines
1.7 KiB
Lua
30 lines
1.7 KiB
Lua
--[[
|
|
| This file was obtained through the combined efforts
|
|
| of Madbluntz & Plymouth Antiquarian Society.
|
|
|
|
|
| Credits: lifestorm, Gregory Wayne Rossel JR.,
|
|
| Maloy, DrPepper10 @ RIP, Atle!
|
|
|
|
|
| Visit for more: https://plymouth.thetwilightzone.ru/
|
|
--]]
|
|
|
|
AddCSLuaFile("shared.lua")
|
|
include('shared.lua')
|
|
/*-----------------------------------------------
|
|
*** Copyright (c) 2012-2023 by DrVrej, All rights reserved. ***
|
|
No parts of this code or any of its contents may be reproduced, copied, modified or adapted,
|
|
without the prior written consent of the author, unless otherwise indicated for stand-alone materials.
|
|
-----------------------------------------------*/
|
|
ENT.StartHealth = 40
|
|
ENT.HullType = HULL_HUMAN
|
|
ENT.HasGrenadeAttack = false -- Should the SNPC have a grenade attack?
|
|
---------------------------------------------------------------------------------------------------------------------------------------------
|
|
function ENT:CustomOnPreInitialize()
|
|
if self.Human_Gender == 0 or (self.Human_Gender == nil && math.random(1, 2) == 1) then
|
|
self.Human_Gender = 0
|
|
self.Model = {"models/Humans/Group02/male_01.mdl","models/Humans/Group02/male_02.mdl","models/Humans/Group02/male_03.mdl","models/Humans/Group02/male_04.mdl","models/Humans/Group02/male_05.mdl","models/Humans/Group02/male_06.mdl","models/Humans/Group02/male_07.mdl","models/Humans/Group02/male_08.mdl","models/Humans/Group02/male_09.mdl"}
|
|
else
|
|
self.Human_Gender = 1
|
|
self.Model = {"models/Humans/Group02/female_01.mdl","models/Humans/Group02/female_02.mdl","models/Humans/Group02/female_03.mdl","models/Humans/Group02/female_04.mdl","models/Humans/Group02/female_06.mdl","models/Humans/Group02/female_07.mdl"}
|
|
end
|
|
end |