• Announcements

    • Brentonator

      Forum Rules (Please Read)

      Hello everyone and welcome to the No More Room In Hell Forums! We greatly appreciate your interest and support. Please feel free to begin post and become a part of this community. But please make sure that you read and understand the following rules so things can stay as clean and as orderly as possible around here. These rules are expected to be follow by any and all members at all times. Disobeying these rules will result in disciplinary action by a moderator. #1. Off color remarks are acceptable but can be deemed inappropriate at the discretion of the moderators. #2. Flaming and disrespecting other members of this community or this mod is strictly prohibited. #3. Please do not post links relating to warez or illegal downloading. #4. No offensive content is to be posted (gore, dead babies, porn). #5. Please do not spam topics to increase your post count. #6. No excessively large signatures. Signatures that violate this will be modified. #7. Signatures are not to be used as a spamming tool. If your signature's sole purpose is to annoy or distract other members, it will be removed. #8. Please do your part to be as friendly, respectful, and helpful to anyone and everyone on this forum. #9. Your posts may be removed at any time at our sole discretion. #10. Remember the terms of your registration...a copy is posted below but may not represent the latest version of our terms of use. #11. No advertising other communities or products. Have fun.
Sign in to follow this  
Followers 0
Koreboo

Spawn players with a specific set of weapons

6 posts in this topic

I'm working on a PVP map and I want players to spawn with a specific set of weapons already in their hands (SMG + medpack + nade). I'm using the game_player_equip entity and I have selected the correct weapons with the correct names. With smart edit turned off, it shows that players will spawn with one of these weapons each. 

VS20gsx.png

But when I hop in game I spawn with no weapons. Are my settings wrong? I can see the weapon names show up in red but why? Is the entity not supported in NMRIH? If so, what are some alternatives/workarounds inside Hammer? I'm kinda new to mapping so any help would be appreciated! 

Edited by Koreboo

Share this post


Link to post
Share on other sites

what level of difficulty on the server?

try change to "casual" (sv_difficulty "casual" in the server.cfg)

 

"Casual"
{
    "TokensEnabledObjective"    "1"
    "KillsPerTokenObjective"    "10"
    
    "TokensEnabledSurvival"        "1"
    "KillsPerTokenSurvival"        "10"
    
    "RespawnAllowed"            "1"
    "RespawnWithWeapon"            "1"
    
    "NearbySpawningEnabled"        "1"
    
    "SpawnGrace"                "-1"
    "SpawnGraceWavePercent"        "1.0"
    
    "ResetTokensOnNewWave"            "0"
    "RemoveInflictionsOnNewWave"    "1"
    "HealAmountOnNewWave"            "40"
    
    "InitialTokenCountObjective"    "3"
    "InitialTokenCountSurvival"        "3"
    
    "ZombieHealth"    "500"
    "ZombieSpawnDensity" "1"
    "BrainStemMode" "0"
    
    "InfectionChanceModifier" "0.975"
    
    "FriendlyFireModifier" "0.1"
    
    "RunnerSpawnerChance" "0.075"
    "ChildSpawnerChance" "0.5"
    
    "DisplayPlayerHealth"    "1"    
}

Share this post


Link to post
Share on other sites

Tried that but it doesn't seem to have any effect. It spawns players with a random melee weapon like it normally would. Unless there's a way to edit the list of weapons given to a player in casual mode?

Edited by Koreboo

Share this post


Link to post
Share on other sites

game_player_equip does not work because nmrih has its own inventory management. What you can try however is make the player entity 'use' a weapon entity.  

Create a trigger that makes the !activator (in this case a player) fire 'use' on a weapon entity.

Share this post


Link to post
Share on other sites
10 hours ago, durkhaz~ said:

game_player_equip does not work because nmrih has its own inventory management. What you can try however is make the player entity 'use' a weapon entity.  

Create a trigger that makes the !activator (in this case a player) fire 'use' on a weapon entity.

 
1

 

That worked! ..sort of. Thanks a lot

I placed the "make-player-use-X-weapon" trigger below each spawn to make players pick up a weapon right after spawning. However, this was causing players to remotely spam "use" on items for as long as they stayed on the trigger area, even when said items were already in their inventory

So I placed a spawn in a non-reachable part of the map, put the "make-player-use-X-weapon" trigger below it (just like I did last time) but this time I added an extra teleport trigger below all that. Then with the help of this tutorial I made the teleport trigger send players to 8 random locations

End result: When a player dies, he spawns outside the map, then he's forced to pick up a weapon and then he's randomly teleported to one of the 8 spawns.

Uh, that was probably confusing to read ;-;

Edited by Koreboo

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0