Page 1 of 2

[HL2:DM] Longjump Modul

Posted: Mon Apr 20, 2020 7:14 am
by Painkiller
The long jump from HL1
with key combination you could use over-shift and space to use a longjump.

You had to collect it but it is located at different places on the map.

Would someone be kind enough to write a plugin for it ?
Is it possible to place this on the map without using the hammer?
Would it be possible to attach this to the model on her back when collecting it?


(I have a modelreplacement.py with which I can exchange things.
With which I can change every model and material on the map.
For example I could turn a bottle into a longjump module.)


Here are the materials, models and sounds.

Code: Select all

/4/hl2mp/models/items/item_longjump_r3.mdl
/4/hl2mp/models/items/item_longjump_r3.dx80.vtx
/4/hl2mp/models/items/item_longjump_r3.dx90.vtx
/4/hl2mp/models/items/item_longjump_r3.phy
/4/hl2mp/models/items/item_longjump_r3.sw.vtx
/4/hl2mp/models/items/item_longjump_r3.vvd
/4/hl2mp/materials/models/items/longjump_normals.vtf
/4/hl2mp/materials/models/items/longjump_diffuse.vtf
/4/hl2mp/materials/models/items/longjump_metal.vmt
/4/hl2mp/materials/models/items/longjump_rubber.vmt
/4/hl2mp/sound/items/longjump_pickup_vo.wav
/4/hl2mp/sound/items/longjump_pickup_sfx.wav
/4/hl2mp/sound/items/longjump1.wav
/4/hl2mp/sound/items/longjump2.wav


Thanks in Advance

Re: [HL2:DM] Longjump Modul

Posted: Tue Apr 21, 2020 10:31 am
by Sam
Is that honest? You suggest others write a plugin for you. Then you put it on the server on your behalf. Great idea xDDDDDD

Re: [HL2:DM] Longjump Modul

Posted: Tue Apr 21, 2020 12:29 pm
by Painkiller
Did I put it that way?
Then I'm sorry.
Am I in the wrong thraid to ask for a plugin?
I also didn't know that I was talking with a word from an info.ini that I was going to make it my plugin.
Corios where they take these baubles.

Re: [HL2:DM] Longjump Modul

Posted: Tue Apr 21, 2020 4:31 pm
by Ayuto
Sam wrote:Is that honest? You suggest others write a plugin for you. Then you put it on the server on your behalf. Great idea xDDDDDD

This is exactly what this forum is made for - non-programmers can ask programmers to write a plugin for them. Everything is fine to request plugins here.

Re: [HL2:DM] Longjump Modul

Posted: Wed Apr 22, 2020 2:04 am
by Sam
Ayuto wrote:
Sam wrote:Is that honest? You suggest others write a plugin for you. Then you put it on the server on your behalf. Great idea xDDDDDD

This is exactly what this forum is made for - non-programmers can ask programmers to write a plugin for them. Everything is fine to request plugins here.

Oof...

Re: [HL2:DM] Longjump Modul

Posted: Wed Apr 22, 2020 2:19 pm
by satoon101
I am not sure why you are so upset about someone requesting a plugin in the "Plugin Requests" forum. Once someone provides the plugin, the code for it will be in this thread, free for ANYONE to use, not just the requester. This has been a thing since forever, and a similar forum existed on the EventScripts forum and one currently exists on the SourceMod forums.

Re: [HL2:DM] Longjump Modul

Posted: Thu Apr 23, 2020 11:35 am
by Sam
I'm just crazy about sitting at home. Sometimes I can carry nonsense. I apologize

Re: [HL2:DM] Longjump Modul

Posted: Sat Apr 25, 2020 7:21 am
by Painkiller
Would anyone be interested in taking up this project?

Re: [HL2:DM] Longjump Modul

Posted: Sun May 24, 2020 7:15 am
by Painkiller
Good Morning @ all,
would anyone have the time and inclination to complete this?

Re: [HL2:DM] Longjump Modul

Posted: Sun May 24, 2020 7:32 am
by Sam
I have a desire to do it but there is no time and there is a less good alternative: AdvancedBunnyHop

Re: [HL2:DM] Longjump Modul

Posted: Sun May 24, 2020 7:35 am
by Painkiller
No, unfortunately this has nothing to do with it.
Straifjump and bunnyhop are available in HL2:DM from home.

Re: [HL2:DM] Longjump Modul

Posted: Sun May 24, 2020 7:36 am
by Sam
But you can rewrite this plugin (That's what I meant)

Re: [HL2:DM] Longjump Modul

Posted: Sun May 24, 2020 7:39 am
by Painkiller
I don't think you know which forum the request came from.

I think you've been confused since the beginning.

I hope you can locate the forum area.

Re: [HL2:DM] Longjump Modul

Posted: Sun May 24, 2020 7:44 am
by Sam
I don’t think everything is so complicated to rewrite the plugin... For this reason, most requests will be ignored.
If I find some free time. I will deal with your inquiries.

Re: [HL2:DM] Longjump Modul

Posted: Sun May 24, 2020 7:46 am
by Painkiller
Yes that would be great but then you can save yourself the power of the confused statements.

Re: [HL2:DM] Longjump Modul

Posted: Sun May 24, 2020 9:12 am
by Sam
Can you give me the resources? (Sounds, models, etc.)

Re: [HL2:DM] Longjump Modul

Posted: Sun May 24, 2020 9:17 am
by Painkiller
Sam wrote:Can you give me the resources? (Sounds, models, etc.)


Are you kidding me?

Painkiller wrote:The long jump from HL1
with key combination you could use over-shift and space to use a longjump.

You had to collect it but it is located at different places on the map.

Would someone be kind enough to write a plugin for it ?
Is it possible to place this on the map without using the hammer?
Would it be possible to attach this to the model on her back when collecting it?


(I have a modelreplacement.py with which I can exchange things.
With which I can change every model and material on the map.
For example I could turn a bottle into a longjump module.)


Here are the materials, models and sounds.

Code: Select all

/4/hl2mp/models/items/item_longjump_r3.mdl
/4/hl2mp/models/items/item_longjump_r3.dx80.vtx
/4/hl2mp/models/items/item_longjump_r3.dx90.vtx
/4/hl2mp/models/items/item_longjump_r3.phy
/4/hl2mp/models/items/item_longjump_r3.sw.vtx
/4/hl2mp/models/items/item_longjump_r3.vvd
/4/hl2mp/materials/models/items/longjump_normals.vtf
/4/hl2mp/materials/models/items/longjump_diffuse.vtf
/4/hl2mp/materials/models/items/longjump_metal.vmt
/4/hl2mp/materials/models/items/longjump_rubber.vmt
/4/hl2mp/sound/items/longjump_pickup_vo.wav
/4/hl2mp/sound/items/longjump_pickup_sfx.wav
/4/hl2mp/sound/items/longjump1.wav
/4/hl2mp/sound/items/longjump2.wav


Thanks in Advance


http://178.63.54.240:8080/178_63_54_240 ... /hl2mp.rar

Re: [HL2:DM] Longjump Modul

Posted: Sun May 24, 2020 9:21 am
by Sam
The resources themselves, not their location...

Re: [HL2:DM] Longjump Modul

Posted: Sun May 24, 2020 9:28 am
by Painkiller

Re: [HL2:DM] Longjump Modul

Posted: Mon May 25, 2020 1:43 pm
by Sam
# For devs
My disk has serious problems, and I can’t do this work for a long time, and I give this code to everyone who wants to continue it. (Sorry for it)

Syntax: Select all

from plugins.info import PluginInfo
from cvars import ConVar
from listeners import OnConVarChanged
from cvars.flags import ConVarFlags
from entities.hooks import EntityPreHook, EntityCondition
from entities.entity import Entity
from memory import make_object
from players.entity import Player
from entities.constants import MoveType
from players.constants import PlayerStates, PlayerButtons
from mathlib import Vector, QAngle
from players import UserCmd

plugin = PluginInfo(
'LongJump',
'LongJump',
'NoName',
'Long Jump Module',
'1.0',
'',
)

PLAYER_LONGJUMP_SPEED = 350
CanSuperJump = [ 0 ] * 32

@EntityPreHook(EntityCondition.is_human_player, 'run_command')
def PreRunCommand(args):
player = make_object(Player, args[0])
if CanSuperJump[player.index] != 1:
return
if player.dead:
return
if player.move_type & MoveType.LADDER:
return
if player.water_level > 1:
return
if player.flags & PlayerStates.ONGROUND:
return
user_cmd = make_object(UserCmd, args[1])
vel = player.velocity
forward = Vector(0, 0, 0)
user_cmd.view_angles.get_angle_vectors(forward, None, None)
if (vel.length > 50) & (player.is_ducking):
punch = player.get_network_property_vector('localdata.m_Local.m_vecPunchAngle')
punch[0] = -5
vel[0] = forward[0] * PLAYER_LONGJUMP_SPEED * 1.6
vel[1] = forward[1] * PLAYER_LONGJUMP_SPEED * 1.6
vel[2] = (2 * 800 * 56.0) ** (1 / 2)
player.set_network_property_vector('localdata.m_Local.m_vecPunchAngle', punch)
player.teleport(None, None, vel)
return