2Q's : No footsteps and STG only. (edited)

Post your scripting questions / solutions here

Moderator: Moderators

Ophisâ„¢
Colonel
Posts: 461
Joined: Sun Mar 12, 2006 2:30 pm
Location: England, Manchester
Contact:

2Q's : No footsteps and STG only. (edited)

Post by Ophisâ„¢ »

I'm editing the "HORROR" mod by rookie one into another gametype to play. (dont worry, im giving credit to him where due). If you know the mod, one person is selected at random to become the invisable killer then put onto the allied team with a silenced pistol and the others are put on the axis team with the weapon they choose.

Q1: I have already done everything to this mod that i want the "invisable killer" to do. However, is there away to make his footsteps while running not herd? as if he was walking. If you need the script i would rather not post it so PM me. (dont want to give the game away untill its done)

Q2: Also, (bigger job i gather) when the other players are auto put onto the axis team, they are able to choose which ever gun they like. Can somebody write me a script so when they are auto selected onto axis they are auto selected with the axis mg (stg). (agian, PM me for the script)

EDIT: i would rather learn how to write this part myself, does anybody no of any good "how to make a mod" scripts? Because im not all that great with mods and i need to know how to set the "local.????" to point at the axis team that way i can just put something along the lines of

Code: Select all


local.???? take "models/weapons/colt45.tik"
local.???? take "models/weapons/m1_garand.tik"
local.???? take "models/weapons/kar98.tik"
local.???? take "models/weapons/KAR98_sniper.tik"
local.???? take "models/weapons/springfield.tik"
local.???? take "models/weapons/thompsonsmg.tik"
local.???? take "models/weapons/mp40.tik"
local.???? take "models/weapons/bar.tik"
local.???? take "models/weapons/bazooka.tik"
local.???? take "models/weapons/shotgun.tik"
local.???? take "models/weapons/panzerschreck.tik"

			
am i saying this right? noob alert!

Thank you!
Last edited by Ophisâ„¢ on Tue May 02, 2006 2:38 pm, edited 1 time in total.
Image[ Formerly Known As Snakeâ„¢ ]
Rookie One.pl
Site Admin
Posts: 2752
Joined: Fri Jan 31, 2003 7:49 pm
Location: Nowa Wies Tworoska, Poland
Contact:

Post by Rookie One.pl »

Q1: Impossible. You can only advise the players to walk if they want to go unnoticed. ;)

Q2: Just remove the local.murderer takeall and local.murderer item "models/weapons/silencedpistol.tik" lines to give them a freedom of choice. :)
<EDIT>Hmm, reading again I'm not sure what you mean. You want to force the murderer to have an STG, right? If so, leave those 2 lines from my reply to question #2 and replace "models/weapons/silencedpistol.tik" with "models/weapons/mp44.tik". That should do the trick. ;)</EDIT>
Admin
Image
Image
Honour guide me.

here's my stuff - inequation.org | here's where I work - thefarm51.com
Ophisâ„¢
Colonel
Posts: 461
Joined: Sun Mar 12, 2006 2:30 pm
Location: England, Manchester
Contact:

Post by Ophisâ„¢ »

ok, is it not possable to increase the murderers walk speed to the speed of running?

And, i dont want to give the murderer any gun, i have sorted that out already that but was easy. I wanted to make it so that the others can only select an axis mg (stg).
Image[ Formerly Known As Snakeâ„¢ ]
Rookie One.pl
Site Admin
Posts: 2752
Joined: Fri Jan 31, 2003 7:49 pm
Location: Nowa Wies Tworoska, Poland
Contact:

Post by Rookie One.pl »

No, it's not possible.

Ah, I see. You would need to modify the player_spawned thread:

Code: Select all

player_spawned:
	if (parm.other == self.player)
	{
		local.player = self.player
		self delete
		local.player.sh_ingame = 1
		if (local.player.dmteam == allies) {
			local.player takeall
			local.player item "models/weapons/mp44.tik"
			// maybe give them a pistol and the nades as well?
			local.player item "models/weapons/m2frag_grenade.tik"
			local.player item "models/weapons/colt45.tik"
		}
	}
end
Just to make things clear: if you hadn't reversed it, axis is the hunter team, allies are the prey. ;)
Admin
Image
Image
Honour guide me.

here's my stuff - inequation.org | here's where I work - thefarm51.com
Ophisâ„¢
Colonel
Posts: 461
Joined: Sun Mar 12, 2006 2:30 pm
Location: England, Manchester
Contact:

Post by Ophisâ„¢ »

oh i see, my bad!

cheers matey im gonna try that code out now.

dam it on the making no footsteps sound!!!!! I wanted him to be stealth as i have took away the "hide" feature. There no way to just generaly make murderer run alittle faster without effecting the other team?
Image[ Formerly Known As Snakeâ„¢ ]
Rookie One.pl
Site Admin
Posts: 2752
Joined: Fri Jan 31, 2003 7:49 pm
Location: Nowa Wies Tworoska, Poland
Contact:

Post by Rookie One.pl »

Nope. You can change the run speed for everyone, but not for specific players. No workarounds m8.
Admin
Image
Image
Honour guide me.

here's my stuff - inequation.org | here's where I work - thefarm51.com
Ophisâ„¢
Colonel
Posts: 461
Joined: Sun Mar 12, 2006 2:30 pm
Location: England, Manchester
Contact:

Post by Ophisâ„¢ »

dam it. cheers anyways. I need another 'special power' for my murderer to have. I basicly wanted him to be abit more stealthy rather then just not visable. Any suggestions? I was thinking maybe making hima touch smaller so he can hide easyer in smaller places? is that possable or again would it effect everyone? I'm making a map designed for this mod and so if it is possable for him to be smaller and everyone else normal, i could put in a large vent network for him to pop into fpor cover and then pop out at another side of the map. hows that sound?
Image[ Formerly Known As Snakeâ„¢ ]
Rookie One.pl
Site Admin
Posts: 2752
Joined: Fri Jan 31, 2003 7:49 pm
Location: Nowa Wies Tworoska, Poland
Contact:

Post by Rookie One.pl »

You can make him look like a midget, but he's not going to be physically smaller. :( Sorry.
Admin
Image
Image
Honour guide me.

here's my stuff - inequation.org | here's where I work - thefarm51.com
Ophisâ„¢
Colonel
Posts: 461
Joined: Sun Mar 12, 2006 2:30 pm
Location: England, Manchester
Contact:

Post by Ophisâ„¢ »

by "physicly smaller" you mean he will only be able to fit/do all the things he normally would, but just "look" smaller? once again... damn it!

Does anybody have any sugestions at all how i can give this lone solider an advatage?!?! (stealthy advantage prefrebly)


*EDIT*

ok, new idea. SURELY its possable to make a door locked only to one team. e.g axis can press e and open a door however being an allie and pressing e it wouldn't do anything?
Image[ Formerly Known As Snakeâ„¢ ]
Green Beret
Major General
Posts: 746
Joined: Mon Apr 19, 2004 12:21 pm
Contact:

Post by Green Beret »

Yea, That CAN be done.
Image
Ophisâ„¢
Colonel
Posts: 461
Joined: Sun Mar 12, 2006 2:30 pm
Location: England, Manchester
Contact:

Post by Ophisâ„¢ »

Rookie One.pl wrote:Nope. You can change the run speed for everyone, but not for specific players. No workarounds m8.
Thinking about it... I know i can't make just one player move faster without effecting everyone... however he will be the only player in the game to have a sniper (springfield). So wouldn't changing the weight of the sniper work so he runs as if it was, lets say, a pistol. If so, i guess i need to edit the springfield.tik but im not sure after doing this how i get it to use my new .tik file instead of the usall file thats in pak0.pk3 (i think).
Image[ Formerly Known As Snakeâ„¢ ]
Rookie One.pl
Site Admin
Posts: 2752
Joined: Fri Jan 31, 2003 7:49 pm
Location: Nowa Wies Tworoska, Poland
Contact:

Post by Rookie One.pl »

Well, yeah, that could work. :) Change the Springfield's dmmovementspeed - the walk/run speed is multiplied by it when carrying this weapon. And it can be done via the script, just find the select_murderer thread:

Code: Select all

// these 2 lines give him unlimited ammo - you can remove them if you want
			local.murderer weaponcommand dual dmammorequired 0
			local.murderer weaponcommand dual usenoammo 1
// fire rate - can be removed
			local.murderer weaponcommand dual dmfiredelay 1
// here, change this value:
			local.murderer weaponcommand dual dmmovementspeed 1.0
// this makes it so that you can't drop the weapon - we don't want the other team to lay their hands on this! ;)
			local.murderer weaponcommand dual notdroppable
// bullet damage and accuracy - can be removed
			local.murderer weaponcommand dual dmbulletdamage 60
			local.murderer weaponcommand dual dmbulletspread 25 25 150 150
Admin
Image
Image
Honour guide me.

here's my stuff - inequation.org | here's where I work - thefarm51.com
Ophisâ„¢
Colonel
Posts: 461
Joined: Sun Mar 12, 2006 2:30 pm
Location: England, Manchester
Contact:

Post by Ophisâ„¢ »

without sounding gay, im not quite sure you know how much i love you by tbh!

i'll try that out now.

EDIT:
:(

Code: Select all

select_sniper:
	if (level.sh_selecting)
		end
	level.sh_selecting = 1
	local.lastsniper = level.sh_sniper
	local.sniper = local.lastsniper
// these 2 lines give him unlimited ammo - you can remove them if you want
        local.sniper weaponcommand dual dmammorequired 0
        local.sniper weaponcommand dual usenoammo 1
// fire rate - can be removed
        local.sniper weaponcommand dual dmfiredelay 1
// here, change this value:
        local.sniper weaponcommand dual dmmovementspeed 1.0
// this makes it so that you can't drop the weapon - we don't want the other team to lay their hands on this! ;)
        local.sniper weaponcommand dual notdroppable
// bullet damage and accuracy - can be removed
        local.sniper weaponcommand dual dmbulletdamage 100
        local.sniper weaponcommand dual dmbulletspread 25 25 150 150
Not working :( were have i gone wrong here )
Image[ Formerly Known As Snakeâ„¢ ]
Rookie One.pl
Site Admin
Posts: 2752
Joined: Fri Jan 31, 2003 7:49 pm
Location: Nowa Wies Tworoska, Poland
Contact:

Post by Rookie One.pl »

Code: Select all

        local.sniper weaponcommand dual dmmovementspeed 1.0 
Try:

Code: Select all

        local.sniper weaponcommand dual dmmovementspeed 2.0 
Should move twice as fast. :)
Admin
Image
Image
Honour guide me.

here's my stuff - inequation.org | here's where I work - thefarm51.com
Ophisâ„¢
Colonel
Posts: 461
Joined: Sun Mar 12, 2006 2:30 pm
Location: England, Manchester
Contact:

Post by Ophisâ„¢ »

well, i tryed 1.0 it 5.0 first (wasn't sure how much to increase it by) and it didnt do anything, plus its meant to give unlimited ammo isn't it? but it doesnt so i gather the speed increase isnt going to work either.
Image[ Formerly Known As Snakeâ„¢ ]
Post Reply