Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if not DrGBase then return end -- return if DrGBase isn't installed
- ENT.Base = "drgbase_nextbot"
- -- Misc --
- ENT.PrintName = "Test"
- ENT.Category = "DrGBase"
- ENT.Models = {"models/player/player.mdl"}
- ENT.Skins = {0}
- ENT.ModelScale = 1
- ENT.CollisionBounds = Vector(10, 10, 72)
- ENT.BloodColor = BLOOD_COLOR_RED
- ENT.RagdollOnDeath = true
- -- Stats --
- ENT.SpawnHealth = 100
- ENT.HealthRegen = 0
- ENT.MinPhysDamage = 10
- ENT.MinFallDamage = 10
- -- Sounds --
- ENT.OnSpawnSounds = {}
- ENT.OnIdleSounds = {}
- ENT.IdleSoundDelay = 2
- ENT.ClientIdleSounds = false
- ENT.OnDamageSounds = {}
- ENT.DamageSoundDelay = 0.25
- ENT.OnDeathSounds = {}
- ENT.OnDownedSounds = {}
- ENT.Footsteps = {}
- -- AI --
- ENT.RangeAttackRange = 1000
- ENT.MeleeAttackRange = 50
- ENT.ReachEnemyRange = 10
- ENT.AvoidEnemyRange = 0
- -- Relationships --
- ENT.Factions = {}
- ENT.Frightening = false
- ENT.AllyDamageTolerance = 0.33
- ENT.AfraidDamageTolerance = 0.33
- ENT.NeutralDamageTolerance = 0.33
- -- Animations --
- ENT.WalkAnimation = "walk_all"
- ENT.RunAnimation = ACT_RUN
- ENT.IdleAnimation = ACT_IDLE
- ENT.JumpAnimation = ACT_JUMP
- -- Movements --
- ENT.UseWalkframes = false
- -- Detection --
- ENT.EyeBone = "ValveBiped.Bip01_Head1"
- ENT.EyeOffset = Vector(5, 0, 2.5)
- ENT.EyeAngle = Angle(0, 0, 0)
- ENT.SightFOV = 150
- ENT.SightRange = 35000
- ENT.MinLuminosity = 0
- ENT.MaxLuminosity = 1
- ENT.HearingCoefficient = 1
- -- Weapons --
- ENT.UseWeapons = true
- ENT.Weapons = {}
- ENT.WeaponAccuracy = 1
- ENT.DropWeaponOnDeath = false
- ENT.AcceptPlayerWeapons = true
- -- Possession --
- ENT.PossessionEnabled = true
- ENT.PossessionViews = {
- {
- offset = Vector(0, 30, 20),
- distance = 100
- },
- {
- offset = Vector(7.5, 0, 0),
- distance = 0,
- eyepos = true
- }
- }
- ENT.PossessionBinds = {}
- if SERVER then
- function ENT:CustomInitialize()
- self:SetPlayersRelationship(D_HT)
- self.Ballon = self:CreateProjectile("proj_soccerball")
- end
- function ENT:CustomThink()
- self.dist = self:GetPos():Distance( self.Ballon:GetPos() )
- if self.Ballon:GetPhysicsObject():GetVelocity():Length() <= 60 and self.Ballon:OnGround() then
- self.Ballon:GetPhysicsObject():EnableMotion(false)
- end
- end
- function ENT:OnIdle()
- end
- function ENT:OnRangeAttack(enemy)
- if ( IsValid( self.Ballon ) ) then
- if self.dist > 40 then
- self:GoTo(self.Ballon:GetPos())
- end
- end
- if self.dist <= 40 then
- self:FaceTowards(enemy)
- --(wait)
- self:PlaySequence("kick_Strong")
- self.Ballon:AimAt(self:GetEnemy(),8000)
- end
- end
- function ENT:OnChaseEnemy()
- return true
- end
- function ENT:OnRemove()
- self.Ballon:Remove()
- end
- end
- -- DO NOT TOUCH --
- AddCSLuaFile()
- DrGBase.AddNextbot(ENT)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement