Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @name NPC bruh
- @persist Array:array NPC:entity X Shoot
- if(first()){
- runOnTick(1)
- entity():propNotSolid(1)
- entity():setAlpha(0)
- findByClass("npc_*")
- findSortByDistance(entity():pos())
- findIncludePlayerProps(owner())
- Array = findToArray()
- #NPC = find()
- #NPC:npcGiveWeapon("annabelle")
- for(N = 1,Array:count()){
- Array[N,entity]:propNotSolid(1)
- }
- }
- #[
- X++
- if(X%40 == 1){
- NPC:npcGiveWeapon("357")
- }
- elseif(X%40 == 39){
- NPC:npcGiveWeapon()
- }
- if(owner():keyUse()){
- NPC:npcGoRun(owner():aimPos())
- }
- else{
- NPC:npcShoot()
- }
- if(owner():keyAttack2()){
- NPC:npcSetTarget(owner():aimEntity())
- }
- ]#
- if(changed(owner():keyPressed("l"))){
- if(owner():keyPressed("l")){
- if(Shoot == 1){
- Shoot = 0
- }
- else{
- Shoot = 1
- }
- }
- }
- X++
- if(X%40 == 1){
- for(N = 1,Array:count()){
- Array[N,entity]:npcGiveWeapon("357")
- }
- }
- elseif(X%40 == 39){
- for(N = 1,Array:count()){
- Array[N,entity]:npcGiveWeapon()
- }
- }
- if(owner():keyUse()){
- for(N = 1,Array:count()){
- Array[N,entity]:npcGoRun(owner():aimPos())
- }
- }
- else{
- if(Shoot == 1){
- for(N = 1,Array:count()){
- Array[N,entity]:npcShoot()
- }
- }
- }
- if(owner():keyAttack2()){
- for(N = 1,Array:count()){
- Array[N,entity]:npcStop()
- Array[N,entity]:npcRelationship(owner():aimEntity(),"hate",1)
- Array[N,entity]:npcSetTarget(owner():aimEntity())
- }
- }
Add Comment
Please, Sign In to add comment