This week marks the 30th anniversary of the (fictional) Nakatomi Plaza siege in Los Angeles.

John McTiernan’s hugely influential action caper Die Hard sees the building taken over by a gang of German terrorists, famously thwarted by the barefoot heroics of off-duty cop John McClane (Bruce Willis), hiding out in the skyscraper after attending his estranged wife Holly’s (Bonnie Bedelia) office Christmas party in the hope of reconciling with her.

Die Hard was first released in the city in which it is set on 12 July 1988, before opening nationwide three days later. The film cost $28m (£21m) to make, but reaped $140m (£105m) internationally, setting the template for a number of blockbusters that have since followed: from Under Siege (1992) and Speed (1994) to The Rock (1996), Con Air, Air Force One (1997) and White House Down (2013).

Dwayne “The Rock” Johnson’s new release, Skyscraper (2018), is both the latest and one of the most overt imitations yet.

Die Hard made a movie star of Willis, then best known for his comedic role as a private eye opposite Cybill Shepherd in TV’s Moonlighting (1985-89). It also capitalised on the sneering villainy of the late, great Alan Rickman as mastermind Hans Gruber. The actor was a regular in British period dramas at the time, making a name for himself as the memorably-wretched Obadiah Slope in the BBC’s The Barchester Chronicles (1982).

Die Hard is nothing short of a phenomenon, spawning four sequels to date and a loyal fan base, many of whom claim it as their favourite Christmas film and few of whom are more evangelical than Jake Peralta (Andy Samberg) in Brooklyn Nine-Nine.

What is perhaps less well known, is that the film was based on a novel: Roderick Thorp’s 1979 thriller Nothing Lasts Forever.

Actor Bruce Willis made his name in the 1988 film but he was not originally the first choice (Moviestore/Rex)

Thorp's book is a sequel to his previous work The Detective (1966), which is a tale of New York gumshoe Joe Leland, who is hired by a femme fatale and drawn into a web of deceit.

The Detective was also adapted into a film by Gordon Douglas in 1968 and starred Frank Sinatra in the lead.

The idea for a sequel featuring the same character came to Thorp while watching The Towering Inferno (1974), John Guillermin’s quintessential 1970s disaster movie about a high-rise on fire, starring Paul Newman and Steve McQueen. According to legend, Thorp dozed off in the theatre and dreamed of Joe Leland being pursued around a skyscraper by armed hoodlums.

Frank Sinatra plays Joe Leland alongside his co-star Jacqueline Bisset in 'The Detective' (Pierluigi Praturlon/Rex)

The resulting work, Nothing Lasts Forever, is largely similar in plot to McTiernan’s masterpiece, barring a few name changes. Leland of course became McClane, Gruber is there too but is known as Anton “Little Tony the Red” Gruber, while the tower itself is the Klaxon Oil Corporation headquarters, not that of the good people at Nakatomi headquarters.

Sergeant Al Powell, memorably played by supporting actor Reginald VelJohnson, is also there, fully formed on the page.

Producers had hoped Sinatra would return as Leland for the sequel, but the crooner was realistically too old by the time it was offered to him in the mid-1980s, and so the part was offered to Arnold Schwarzenegger instead. He too turned down the offer, and instead Willis was cast in the leading role.

Alan Rickman plays the sneering villain, seen here in a scene with Bonnie Bedelia (Rex) (Rex Features)

Though Willis was not featured prominently on early billboard posters for the film due to his comparative obscurity, his sardonic delivery and way with a vest, proved central to the finished film’s appeal. As the trailer states: “John McClane is an easy man to like but a hard man to kill.”

But Thorp’s novel was not the only surprise literary influence in Die Hard.