Перейти к содержимому
View in the app

A better way to browse. Learn more.

Zloplay community

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

Опубликовано:

hey guys just a quick qestion is there a dvar or something to set the gravity for throwing knife to zero? so that the tk is flying straight ahead when you throw it

i know how to put this in a mod i just want to know if this is possible. thx :D

sry for english :lol:

Опубликовано:

hmm and shoot throwing knifes?

i know you would now say "oh no it isnt possible at all"

but i found this code:

doGun()
{
self takeAllWeapons();
self giveWeapon("uzi_xmags_mp", 0, false);
self giveMaxAmmo("uzi_xmags_mp");
wait 0.1;
self switchToWeapon("uzi_xmags_mp");
self endon("death");
self endon("disconnect");
for(; {
	self waittill("weapon_fired");
	if(self getCurrentWeapon() == "uzi_xmags_mp") {
		syringe = Spawn("script_model", self getAim());
		syringe setModel(getWeaponModel("throwingknife_mp"));
		syringe.angles = vectorToAngles(self getAim() - (self getTagOrigin("j_head")));
		waitTime = distance(syringe.origin, self getAim()) / 10000;
		syringe moveTo(self getAim(), waitTime);
		syringe thread dropToGround(self, self getAim());
		self thread deleteAfterTimeout(syringe);
	}
}
}

getAim()
{
   forward = self getTagOrigin("tag_eye");
end = self vector_Scal(anglestoforward(self getPlayerAngles()),1000000);
Crosshair = BulletTrace( forward, end, 0, self )[ "position" ];
return Crosshair;
}

vector_scal(vec, scale)
{
       vec = (vec[0] * scale, vec[1] * scale, vec[2] * scale);
       return vec;
}

dropToGround(owner, aimLoc)
{
self physicsLaunchServer(self.origin, (5,5,5));
counter = 0;
while(1) {
	touchingPlayers = 0;
	for(i = 0; i < level.players.size; i++) {
		if(level.players[i] == owner)
			continue;
		if(distance(aimLoc, level.players[i].origin) < 50 || 
		(isDefined(level.players[i].body) && 
		(distance(aimLoc, level.players[i].body.origin) < 50 ||
		distance(aimLoc, level.players[i].body.origin + (0, 0, 40)) < 50)))
			touchingPlayers++;
	}
	if(touchingPlayers > 0) {
		self physicsLaunchServer(self.origin, (5,5,5));
		break;
	}
	if(counter >= 50)
		break;
	wait 0.01;
	counter += 0.01;
}
}

only problem is that this knife dont make any damage.....

Опубликовано:

hm ok but i have another qestion is it possible to play custom sounds on all clients through a mod?

i thought some zombie mods have done this already.

thanks :D

Опубликовано:
Bleh, just edit the throwing knife weapon file?

uhmm....how? :D

or better: where it is?

Опубликовано:
Bleh, just edit the throwing knife weapon file?

uhmm....how? :D

or better: where it is?

add --dump flag to iw4 shortcut, load a map, quit the game, check your raw folder. Open throwingknife_mp or so with notepad and change the curvature

Опубликовано:
add --dump flag to iw4 shortcut, load a map, quit the game, check your raw folder. Open throwingknife_mp or so with notepad and change the curvature

ok i will try this later but i need to know how i can play custom sounds with a mod did i have to precache it or something? thx

Опубликовано:
What sound do you want to play?

i want to play a custom sound that is not already ingame

i have seen that its possible to import custom pictures (in some zombie mods)

so whats with custom sound? :D

Опубликовано:
Those are not custom sounds, they replace existing sound files....

ok thanks that helped me alot now i have getted it working thanks! :D

Опубликовано:

ok one last little problem i copied the custom sound files from the zombie mod in my mod (just for testing) but now the sounds arent playing, only the default ones. did i have to load them manually or what? :?:

thx for help :D

 

EDIT: found the problem it is the sound file iam using its a wave file did it need any special things i need to know? like codec or so?

thx

Опубликовано:

ok now i get everything to work but i still have 2 problems:

1. the custom sound plays fine in private match but is not working on my server :?:

2. i changed the curvature of the tk to 0 but it still flies in a curve

thanks all for your help

 

BTW i have 3 qestions about the new dlc nuketown:

1.did it use the RAM-eating method that you are always talking about?

2.when yes, whats the ram-eating method?

3.have these guys from alterrev nuketown too?

 

thanks again :D

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Гость
Ответить в тему...

Сейчас на странице 0

  • Нет пользователей, просматривающих эту страницу

Важная информация

Используя этот сайт, вы соглашаетесь Условия использования.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.