Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: Mapadd: info_player_start  (Read 2686 times)

0 Members and 1 Guest are viewing this topic.

Offline Fidchell

  • *
  • *
  • +4% chance to make useful post
  • Fidchell has no influence.
Mapadd: info_player_start
« on: July 06, 2011, 01:49:55 AM »
Why is it that this line of code isn't working? I try to set a spawn point but you spawn in another point...even if I change the coordinates around.

Code: [Select]
// ace - green
// s - soldier
// e - elite (white suit enemies)
// c - camouflaged

"precache"{
"entity" "npc_combine_s"
"entity" "npc_combine_e"
}

"randomspawn" {

"removenodes" {
"origin" "1931.139526 534.552124 64.031250"
"radius" "800"
}


"npc_combine_s" {
"count" "20"
"grenade" "5"
"patrolrandom"
"values" "GrenadeClass custom_explosive GrenadeExploType CSFragGrenade2

GrenadeClass custom_explosive GrenadeExploType CSFragGrenade2 GrenadeClass custom_explosive

GrenadeExploType CSFragGrenade2 squadname cb1"
"targetname" "officer"
"model" "models/combine_soldier_prisonguard.mdl"
}

"npc_combine_e" {
"count" "20"
"grenade" "5"
"patrolrandom"
"values" "GrenadeClass custom_explosive GrenadeExploType CSFragGrenade2

GrenadeClass custom_explosive GrenadeExploType CSFragGrenade2 squadname cb2"
"targetname" "officer"
"model" "models/urbantrenchcoat.mdl"
}


}

"entities"{


"instant_trig" {
"keyvalues" {
"label" "initialize"
"timer" ".1"
}
}


"instant_trig" {
"keyvalues" {
"islived" "officer"
"label" "clear"
}
}

"info_player_start" {
"origin" "1887.832397 1076.059570 63.964874"
"angle" "0 -90 0"
}


}

"entities:initialize" {

"player" {
"message" "Kill all the terrorists residing in the slums."
"music" "randominitsong"
}
}

}

"entities:clear"{
"player" {
"message" "The terrorists have been neutralized. Good work, soldier."
"music" "ouronlyhope"
}
}

Not sure what I'm doing wrong here since this is almost the same format of code for another map I worked on and in that one it works fine.

Offline sirmasters

  • *
  • +5% chance to make useful post
  • sirmasters barely matters.sirmasters barely matters.
    • My Twitter (My Forums are inactive at the moment)
Re: Mapadd: info_player_start
« Reply #1 on: July 06, 2011, 04:52:53 AM »
Not sure if this works, but might as well try.
Code: [Select]
// ace - green
// s - soldier
// e - elite (white suit enemies)
// c - camouflaged

"precache"{
"entity" "npc_combine_s"
"entity" "npc_combine_e"
}

"randomspawn" {

"removenodes" {
"origin" "1931.139526 534.552124 64.031250"
"radius" "800"
}


"npc_combine_s" {
"count" "20"
"grenade" "5"
"patrolrandom"
"values" "GrenadeClass custom_explosive GrenadeExploType CSFragGrenade2 GrenadeClass custom_explosive GrenadeExploType CSFragGrenade2 GrenadeClass custom_explosive GrenadeExploType CSFragGrenade2 squadname cb1"
"targetname" "officer"
"model" "models/combine_soldier_prisonguard.mdl"
}

"npc_combine_e" {
"count" "20"
"grenade" "5"
"patrolrandom"
"values" "GrenadeClass custom_explosive GrenadeExploType CSFragGrenade2 GrenadeClass custom_explosive GrenadeExploType CSFragGrenade2 squadname cb2"
"targetname" "officer"
"model" "models/urbantrenchcoat.mdl"
}


}

"entities"{


"instant_trig" {
"keyvalues" {
"label" "initialize"
"timer" ".1"
}
}


"instant_trig" {
"keyvalues" {
"islived" "officer"
"label" "clear"
}
}

"removeentity" { //ALWAYS put this first before setting the new spawn
"origin" "0 0 0" //This doesn't matter unless you want to remove a specific spawn
"keyvalues" {
"radius" "9999999999999" //This should remove all spawns from the whole map
"targetname" "info_player_start" //Herp derp
}
}

"info_player_start" {
"origin" "1887.832397 1076.059570 63.964874"
"angle" "0 -90 0"
}
}

"entities:initialize" {

"player" {
"message" "Kill all the terrorists residing in the slums."
"music" "randominitsong"
}
}

"entities:clear"{
"player" {
"message" "The terrorists have been neutralized. Good work, soldier."
"music" "ouronlyhope"
}
}
._. I love coffee.

Offline BIZ

  • 32-Bit Hobo
  • *
  • *
  • +0% chance to make useful post
  • BIZ hides in shadows.
    • BSNOOCH.COM
Re: Mapadd: info_player_start
« Reply #2 on: July 06, 2011, 05:05:52 AM »
is it a CSS map?

Offline Counter-Life™

  • *
  • *
  • +17% chance to make useful post
  • Counter-Life™ is a rising star!Counter-Life™ is a rising star!Counter-Life™ is a rising star!Counter-Life™ is a rising star!Counter-Life™ is a rising star!Counter-Life™ is a rising star!
    • Youtube Channel
Re: Mapadd: info_player_start
« Reply #3 on: July 06, 2011, 07:01:45 AM »
I've got the same problem!Your new info_player_start gots removed too!OR its not working because of the code
"targetname" "info_player_start" This is not a name its a item class!
« Last Edit: July 06, 2011, 07:03:36 AM by xplozN_lulz »

Offline IneptGuard

  • *
  • *
  • +5% chance to make useful post
  • IneptGuard barely matters.IneptGuard barely matters.
Re: Mapadd: info_player_start
« Reply #4 on: July 06, 2011, 09:18:51 PM »
1. Make sure the info_player_start is above the ground, floating slightly if need be and not clipping with any models or world geometry. Hint: the info_player_start is roughly the same dimensions as the player.

2. Make sure there is not another info_player_start in the map. Use entspy or something to see if there is one compiled into the map. basically the way info_player_start handles multiple placements is to default to the first one placed or the oldest info_player_start. So if you have an info_player_start already baked into the map by whomever made it, then you come along and add a new one, the new one won't do a dam thing until the old one has been removed.

Offline Fidchell

  • *
  • *
  • +4% chance to make useful post
  • Fidchell has no influence.
Re: Mapadd: info_player_start
« Reply #5 on: July 07, 2011, 01:37:20 AM »
Thank you very much, guys, for bothering to reply. IneptGuard, thanks for the recommendation of entspy. What a useful tool. I was able to delete the info_player_start within the program and save a new BSP. It works now.

Weird that people would put such an entity in a counter-strike map when they should be using counter-terrorist and terrorist spawns instead.

Thanks again.

Offline IneptGuard

  • *
  • *
  • +5% chance to make useful post
  • IneptGuard barely matters.IneptGuard barely matters.
Re: Mapadd: info_player_start
« Reply #6 on: July 07, 2011, 09:06:15 PM »
Thank you very much, guys, for bothering to reply. IneptGuard, thanks for the recommendation of entspy. What a useful tool. I was able to delete the info_player_start within the program and save a new BSP. It works now.

Thanks again.

Your welcome,

Weird that people would put such an entity in a counter-strike map when they should be using counter-terrorist and terrorist spawns instead.

Sometimes mappers just like the compatibility for HL2 mods that use CS resources. Also if I remember correctly, CS does use the info_player_start as sort of a universal spawn point that can be useful for testing during development. These spawns are usually overridden by the CS team spawns but in Smod it defaults to HL2 and thus the info_player_start.
« Last Edit: July 07, 2011, 09:09:50 PM by IneptGuard »